Skip to content

Commit

Permalink
ci: move test coverage to separate job to avoid duplicate coverage re…
Browse files Browse the repository at this point in the history
…ports
  • Loading branch information
carstendietrich committed May 6, 2022
1 parent 5f22dd0 commit bddeeb1
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,22 @@ jobs:
matrix:
go: [ '1.17', '1.*' ]
name: Tests
steps:
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Get dependencies
run: go get -v -t -d ./...
- name: Test
run: CGO_ENABLED=1 go test -race ./...
coverage:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.*' ]
name: Coverage Report
steps:
- uses: actions/checkout@v2
- name: Setup Go
Expand Down Expand Up @@ -45,7 +61,6 @@ jobs:
with:
recreate: true
path: code-coverage-results.md

static-checks:
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit bddeeb1

Please sign in to comment.