Skip to content

Commit 80e8e54

Browse files
committed
Add test coverage
1 parent 3a47b37 commit 80e8e54

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,19 @@ jobs:
2626
uses: actions/checkout@v2
2727
- name: Test
2828
run: go test ./...
29+
- name: Test coverage
30+
run: go test -coverprofile=profile.cov ./...
31+
- name: Send coverage
32+
uses: shogo82148/actions-goveralls@v1
33+
with:
34+
path-to-profile: profile.cov
35+
flag-name: go${{ matrix.go-version }}-${{ matrix.os }}
36+
parallel: true
37+
# notifies that all test jobs are finished.
38+
finish:
39+
needs: test
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: shogo82148/actions-goveralls@v1
43+
with:
44+
parallel-finished: true

0 commit comments

Comments
 (0)