File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1919 ./cli-v2 install
2020 - name : " Run tests"
2121 run : |
22- go test ./...
22+ 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
2328
2429 release :
2530 needs : test
Original file line number Diff line number Diff line change 33## Build & Test Commands
44- Build: ` go build ./cli-v2.go `
55- Run all tests: ` go test ./... `
6+ - Run all tests with coverage: ` go test -coverprofile=unit.coverage.out ./... `
67- Run specific test: ` go test -run TestName ./package/path `
78- Example: ` go test -run TestGetTools ./tools `
89- Format code: ` go fmt ./... `
You can’t perform that action at this time.
0 commit comments