Skip to content

Commit

Permalink
(ref) #26 adds coverage action
Browse files Browse the repository at this point in the history
  • Loading branch information
benammann committed Aug 29, 2022
1 parent 8c39aef commit 15c03d8
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,25 @@ jobs:
with:
go-version: 1.17
- name: Test
run: go test ./...
run: go test ./... -v
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Calc coverage
run: |
go test ./... -v -covermode=count -coverprofile=coverage.out
- name: Convert coverage.out to coverage.lcov
uses: jandelgado/gcov2lcov-action@v1
- name: Coveralls
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov

0 comments on commit 15c03d8

Please sign in to comment.