There was an error while loading. Please reload this page.
1 parent e3d926e commit f1b322dCopy full SHA for f1b322d
1 file changed
.github/workflows/tests.yml
@@ -66,9 +66,12 @@ jobs:
66
cache: true
67
68
- name: Build
69
- run: go build -v ./...
+ run: |
70
+ # Build all packages except example (has multiple main functions)
71
+ go build -v $(go list ./... | grep -v '/example')
72
73
- name: Test compilation
74
run: |
- go test -c -o /dev/null ./...
75
+ # Test compilation for all packages except example
76
+ go list ./... | grep -v '/example' | xargs -I {} go test -c -o /dev/null {}
77
0 commit comments