Skip to content

Commit

Permalink
Add github action for coverage (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-soltesz authored Feb 12, 2024
1 parent 888f01c commit 74e2928
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: coverage
on:
pull_request:
push:
branches:
- "main"

jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: "1.20"
- uses: actions/checkout@v3
- run: go test -coverprofile=profile.cov ./...
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
parallel: true

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

0 comments on commit 74e2928

Please sign in to comment.