Skip to content

Commit fa8a7d1

Browse files
fix(ci): add pipefail to test step so failures aren't masked by tee (#1598)
The `go test ... | tee test-output.txt` pipeline silently swallows test failures because the exit code comes from `tee` (always 0), not `go test`. This allowed the mol-wisp-compact template variable failure to go undetected on Linux CI while Windows CI (no pipe) caught it. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 45450a6 commit fa8a7d1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ jobs:
8888

8989
- name: Test with Coverage
9090
run: |
91+
set -o pipefail
9192
go test -race -short -coverprofile=coverage.out ./... 2>&1 | tee test-output.txt
9293
9394
- name: Upload Coverage Data

0 commit comments

Comments
 (0)