Skip to content

Commit ca9fd64

Browse files
committed
Limit macOS CI to spooledtempfile tests only
Run only spooledtempfile package tests on macOS runners instead of the full test suite, since the macOS-specific code changes are limited to that package. This addresses review feedback to optimize CI runtime while maintaining platform-specific test coverage.
1 parent 7e06dd7 commit ca9fd64

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/go.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,20 @@ jobs:
2828
run: go build -v ./...
2929

3030
- name: Goroutine leak detector
31+
if: matrix.os == 'ubuntu-latest'
3132
continue-on-error: true
3233
run: go test -c -o tests && for test in $(go test -list . | grep -E "^(Test|Example)"); do ./tests -test.run "^$test\$" &>/dev/null && echo -e "$test passed\n" || echo -e "$test failed\n"; done
3334

34-
- name: Test
35+
- name: Test (Full Suite)
36+
if: matrix.os == 'ubuntu-latest'
3537
run: go test -race -v ./...
3638

39+
- name: Test (spooledtempfile only)
40+
if: matrix.os == 'macos-latest'
41+
run: go test -race -v ./pkg/spooledtempfile/...
42+
3743
- name: Benchmarks
44+
if: matrix.os == 'ubuntu-latest'
3845
run: go test -bench=. -benchmem -run=^$ ./...
3946

4047
# Platform-specific test verification

0 commit comments

Comments
 (0)