Skip to content

Commit

Permalink
Conditional coverage step
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv committed Nov 12, 2022
1 parent 237255b commit aa80d5c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ jobs:

strategy:
matrix:
go: [ '1.17', '1.x' ]
include:
- go: 1.17
coverage: no
- go: 1.x
coverage: yes

name: Go ${{ matrix.go }}
steps:
Expand Down Expand Up @@ -49,9 +53,11 @@ jobs:
run: cd _examples && go test

- name: Prepare coverage report
if: ${{ matrix.coverage == 'yes' }}
uses: jandelgado/[email protected]

- name: Send coverage report
if: ${{ matrix.coverage == 'yes' }}
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit aa80d5c

Please sign in to comment.