Skip to content

Commit

Permalink
ci: fix tests cli for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
t2y committed Apr 22, 2024
1 parent 271630d commit 37e9faa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ jobs:
run: go build -v ./...
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Lint
run: make lint
- name: Test
run: make test
run: |
go test -race -cover ./... -coverprofile coverage.out -coverpkg ./...
go tool cover -func coverage.out -o coverage.out # Replaces coverage.out with the analysis of coverage.out
# coverage
- name: Go Coverage Badge
Expand Down

0 comments on commit 37e9faa

Please sign in to comment.