We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 791dace commit e39d9b0Copy full SHA for e39d9b0
.github/workflows/ci.yml
@@ -116,7 +116,15 @@ jobs:
116
- name: Verify dependencies
117
run: go mod verify
118
119
- - name: Run tests (excluding CGO-dependent packages)
+ - name: Run tests with coverage (excluding CGO-dependent packages)
120
run: |
121
- go test -v -race $(go list ./... | grep -v 'internal/cli' | grep -v 'internal/capture/procps/linux')
+ go test -v -race -coverprofile=coverage.out -covermode=atomic $(go list ./... | grep -v 'internal/cli' | grep -v 'internal/capture/procps/linux')
122
+
123
+ - name: Display coverage summary
124
+ run: |
125
+ go tool cover -func=coverage.out | tail -20
126
+ echo ""
127
+ echo "=== Total Coverage ==="
128
+ go tool cover -func=coverage.out | grep total
129
130
0 commit comments