Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ jobs:
./cli-v2 install
- name: "Run tests"
run: |
go test ./...
go test -coverprofile=unit.coverage.out ./...
- name: "Upload coverage to Codacy"
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: |
bash <(curl -Ls https://coverage.codacy.com/get.sh) report --force-coverage-parser go -r unit.coverage.out

release:
needs: test
Expand Down
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Build & Test Commands
- Build: `go build ./cli-v2.go`
- Run all tests: `go test ./...`
- Run all tests with coverage: `go test -coverprofile=unit.coverage.out ./...`
- Run specific test: `go test -run TestName ./package/path`
- Example: `go test -run TestGetTools ./tools`
- Format code: `go fmt ./...`
Expand Down