Skip to content

Commit 5ea71e3

Browse files
oxistomfridman
andauthored
Added coverage reporting (#304)
Co-authored-by: Michael Fridman <[email protected]>
1 parent b88a60f commit 5ea71e3

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,23 @@ jobs:
3232
fi
3333
- name: Build
3434
run: |
35-
go install github.com/mfridman/tparse@latest
35+
go install github.com/mfridman/tparse@latest
3636
go vet ./...
3737
go test -v -race -count=1 -json -coverpkg=$(go list ./...) ./... | tee output.json | tparse -follow -notests || true
3838
tparse -format markdown -file output.json -all > $GITHUB_STEP_SUMMARY
3939
go build ./...
40+
coverage:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: Checkout
44+
uses: actions/checkout@v3
45+
- name: Setup Go
46+
uses: actions/setup-go@v4
47+
- name: Coverage
48+
run: |
49+
go test -v -covermode=count -coverprofile=coverage.cov ./...
50+
- name: Coveralls
51+
uses: coverallsapp/github-action@v2
52+
with:
53+
file: coverage.cov
54+
format: golang

0 commit comments

Comments
 (0)