Skip to content

Commit 4c5ff74

Browse files
committed
Fix CI tests to exclude WASM-specific packages
The runtime and examples packages use syscall/js which only works with GOOS=js GOARCH=wasm build tags. Exclude these from regular testing to prevent build constraint failures. Tested packages: - cmd/guix (CLI tool) - internal/cache (incremental compilation) - pkg/ast (AST definitions) - pkg/parser (parser with tests) - pkg/codegen (code generator) WASM packages (excluded from CI tests): - pkg/runtime (syscall/js dependent) - examples/* (WASM applications) These are validated by the build-wasm job which compiles them with proper GOOS/GOARCH flags.
1 parent 7f6cb51 commit 4c5ff74

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,14 @@ jobs:
6161
run: go mod download
6262

6363
- name: Run tests
64-
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
64+
run: |
65+
# Test non-WASM packages (exclude runtime and examples which use syscall/js)
66+
go test -v -race -coverprofile=coverage.txt -covermode=atomic \
67+
./cmd/... \
68+
./internal/... \
69+
./pkg/ast/... \
70+
./pkg/parser/... \
71+
./pkg/codegen/...
6572
6673
- name: Upload coverage
6774
uses: codecov/codecov-action@v4

0 commit comments

Comments
 (0)