Skip to content

Commit

Permalink
Added coverage reporting (#304)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Fridman <mf192@icloud.com>
  • Loading branch information
oxisto and mfridman committed Apr 10, 2023
1 parent b88a60f commit 5ea71e3
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/build.yml
Expand Up @@ -32,8 +32,23 @@ jobs:
fi
- name: Build
run: |
go install github.com/mfridman/tparse@latest
go install github.com/mfridman/tparse@latest
go vet ./...
go test -v -race -count=1 -json -coverpkg=$(go list ./...) ./... | tee output.json | tparse -follow -notests || true
tparse -format markdown -file output.json -all > $GITHUB_STEP_SUMMARY
go build ./...
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
- name: Coverage
run: |
go test -v -covermode=count -coverprofile=coverage.cov ./...
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
file: coverage.cov
format: golang

0 comments on commit 5ea71e3

Please sign in to comment.