Skip to content

Commit

Permalink
gha: compile-test for all supported Go versions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cyphar committed Dec 16, 2024
1 parent 31bfec2 commit 2d9831f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,33 @@ on:
- cron: "30 10 * * 0"

jobs:
test-build:
strategy:
fail-fast: false
matrix:
os:
- windows-latest
- ubuntu-latest
- macos-latest
go-version:
- "1.18"
- "1.19"
- "1.20"
- "1.21"
- "1.22"
- "1.23"
- "^1"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: go build check
run: go build ./...
- name: go test build check
run: go test -run none ./...

test-windows:
strategy:
fail-fast: false
Expand Down

0 comments on commit 2d9831f

Please sign in to comment.