Skip to content

Commit b38fa45

Browse files
committed
fix(ci): prevent race test OOM and fix cross-platform check (#33)
- Add -count=1 -timeout=5m to race tests to prevent unbounded runs - Set GOGC=50 in CI to reduce memory pressure under the race detector - Change cross-platform step from go test (requires runner) to go vet (compile-only check)
1 parent d5e2e42 commit b38fa45

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ jobs:
2525

2626
- name: Test
2727
run: make test
28+
env:
29+
GOGC: 50

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
test:
22
go test ./...
3-
go test ./... -short -race
3+
go test ./... -short -race -count=1 -timeout=5m
44
go test ./... -run=NONE -bench=. -benchmem
5-
env GOOS=linux GOARCH=386 go test ./...
5+
env GOOS=linux GOARCH=386 go vet ./...
66
go vet

0 commit comments

Comments
 (0)