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 <[email protected]>
  • Loading branch information
cyphar committed Dec 12, 2024
1 parent 1727fa3 commit 6783ee9
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 6783ee9

Please sign in to comment.