Skip to content

Commit 2d9831f

Browse files
committed
gha: compile-test for all supported Go versions
This is not a guarantee that things will work, but it will give us a hint about any obvious issues. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
1 parent 31bfec2 commit 2d9831f

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,33 @@ on:
1111
- cron: "30 10 * * 0"
1212

1313
jobs:
14+
test-build:
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os:
19+
- windows-latest
20+
- ubuntu-latest
21+
- macos-latest
22+
go-version:
23+
- "1.18"
24+
- "1.19"
25+
- "1.20"
26+
- "1.21"
27+
- "1.22"
28+
- "1.23"
29+
- "^1"
30+
runs-on: ${{ matrix.os }}
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: actions/setup-go@v5
34+
with:
35+
go-version: ${{ matrix.go-version }}
36+
- name: go build check
37+
run: go build ./...
38+
- name: go test build check
39+
run: go test -run none ./...
40+
1441
test-windows:
1542
strategy:
1643
fail-fast: false

0 commit comments

Comments
 (0)