Skip to content

Commit

Permalink
Add coverage statistics in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
georgepsarakis committed Dec 17, 2023
1 parent 6f35869 commit e135068
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ jobs:
go-version: '1.21.x'
- name: Install dependencies
run: go get .
- name: Set up gotestfmt
run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest
- name: Build
run: go build -v ./...
- name: Unit Tests
run: go test -v ./...
run: go test -v -json -race -coverprofile=cover.out ./... | gotestfmt
- name: CLI Integration Tests
run: go test -v main_test.go
run: go test -v -json -race main_test.go | gotestfmt

0 comments on commit e135068

Please sign in to comment.