We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1b6ae36 + 5bde2d4 commit f152ab7Copy full SHA for f152ab7
1 file changed
.github/workflows/coverage.yml
@@ -18,6 +18,7 @@
18
name: Coverage
19
20
on:
21
+ pull_request:
22
push:
23
branches: [ "main" ]
24
@@ -41,9 +42,9 @@ jobs:
41
42
- name: Run tests with coverage
43
run: make test
44
- - name: Upload coverage to Coveralls
45
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
46
- uses: coverallsapp/github-action@v2
47
- with:
48
- file: coverage.out
49
- format: golang
+ - name: Post to Coveralls
+ run: |
+ curl -sL https://coveralls.io/coveralls-linux.tar.gz | tar -xz
+ ./coveralls report coverage.out
+ env:
50
+ COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments