Skip to content

Commit 5bde2d4

Browse files
committed
ci: upload coverage directly
1 parent 1b6ae36 commit 5bde2d4

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
name: Coverage
1919

2020
on:
21+
pull_request:
2122
push:
2223
branches: [ "main" ]
2324

@@ -41,9 +42,9 @@ jobs:
4142
- name: Run tests with coverage
4243
run: make test
4344

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
45+
- name: Post to Coveralls
46+
run: |
47+
curl -sL https://coveralls.io/coveralls-linux.tar.gz | tar -xz
48+
./coveralls report coverage.out
49+
env:
50+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)