Skip to content

Commit

Permalink
Add coverage report job
Browse files Browse the repository at this point in the history
  • Loading branch information
smoynes committed Oct 18, 2023
1 parent 059f3d5 commit 76a0bb0
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,31 @@ jobs:
- name: Install test runner
run: go install gotest.tools/gotestsum@latest

- name: Test
run: gotestsum -f github-actions ./...
- name: Tests
run: |
gotestsum -f github-actions ./...
coverage:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: stable

- name: Coverage
run: |
go test \
-coverprofile cover.out \
-covermode count \
-coverpkg ./... \
-shuffle on
- name: Report
run: go tool cover -func=cover.out

build-release:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 76a0bb0

Please sign in to comment.