Skip to content

Commit 1aa6cce

Browse files
pierre-bclaude
andcommitted
Fix unit test workflow: exclude cmd package with no tests
The cmd/selfhost_s3 package has no test files, which causes Go's coverage tool to fail with "no such tool covdata" error. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 37c6f59 commit 1aa6cce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/go.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626

2727
- name: Run unit tests
2828
run: |
29-
# Run unit tests (exclude integration tests)
30-
go test -race -coverprofile=coverage.txt -covermode=atomic $(go list ./... | grep -v '/integration') -v
29+
# Run unit tests (exclude integration tests and cmd which has no tests)
30+
go test -race -coverprofile=coverage.txt -covermode=atomic $(go list ./... | grep -v '/integration' | grep -v '/cmd/') -v
3131
3232
- name: Upload coverage to Codecov
3333
uses: codecov/codecov-action@v5

0 commit comments

Comments
 (0)