Update quality-checks.yml

This commit is contained in:
mkelcik
2023-04-28 15:22:21 +02:00
parent 5fb30f9769
commit 7de817007d

View File

@@ -22,19 +22,17 @@ jobs:
with: with:
version: latest version: latest
tests: tests:
name: Client tests name: Test
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Start testing stack
run: docker-compose -f ./docker-compose-ci.yaml up -d
- name: Prepare go environment - name: Prepare go environment
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
go-version: '1.20' go-version: '1.20'
cache: false cache: false
- name: Run client tests - name: Run client tests
run: env TEST_API_HOST=http://localhost:8080 go test --cover -coverprofile coverage.out -covermode count -v ./... run: go test --cover -coverprofile coverage.out -covermode count -v ./...
- name: Coverage check - name: Coverage check
env: env:
TESTCOVERAGE_THRESHOLD: 0 TESTCOVERAGE_THRESHOLD: 0