/ .github / workflows / tests.yml
tests.yml
 1  name: Tests
 2  
 3  on: [push]
 4  
 5  jobs:
 6    tests:
 7      defaults:
 8        run:
 9          shell: bash
10  
11      runs-on: ubuntu-latest
12      steps:
13        - name: Checkout
14          uses: actions/checkout@v4
15  
16        - name: Set up Go
17          uses: actions/setup-go@v5
18          with:
19            go-version: 1.22.5
20  
21        - name: Install dependencies
22          run: make install-deps
23  
24        - name: Build
25          run: make
26  
27        - name: Go test
28          run: go test -v ./
29  
30        - name: Run Journalist in background
31          run: |
32            ./journalist &
33  
34        - name: Run integration tests
35          env:
36            JOURNALIST_API_URL: http://127.0.0.1:8000/api/v1
37          run: |
38            ./test.sh true
39