We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c56872d + 4f13675 commit 2b8ca02Copy full SHA for 2b8ca02
2 files changed
.github/workflows/go.yml
@@ -19,7 +19,12 @@ jobs:
19
./cli-v2 install
20
- name: "Run tests"
21
run: |
22
- go test ./...
+ go test -coverprofile=unit.coverage.out ./...
23
+ - name: "Upload coverage to Codacy"
24
+ env:
25
+ CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
26
+ run: |
27
+ bash <(curl -Ls https://coverage.codacy.com/get.sh) report --force-coverage-parser go -r unit.coverage.out
28
29
release:
30
needs: test
CLAUDE.md
@@ -3,6 +3,7 @@
3
## Build & Test Commands
4
- Build: `go build ./cli-v2.go`
5
- Run all tests: `go test ./...`
6
+- Run all tests with coverage: `go test -coverprofile=unit.coverage.out ./...`
7
- Run specific test: `go test -run TestName ./package/path`
8
- Example: `go test -run TestGetTools ./tools`
9
- Format code: `go fmt ./...`
0 commit comments