Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…o main
  • Loading branch information
yvesago committed Feb 6, 2022
2 parents 87bc97e + a666106 commit 0405e2c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on: [push, pull_request]
jobs:

test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: ['1.16', '1.17']

steps:
- uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v2
- run: go test -v -coverprofile=profile.cov ./...

- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
flag-name: Go-${{ matrix.go }}
parallel: true

# notifies that all test jobs are finished.
finish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true

0 comments on commit 0405e2c

Please sign in to comment.