Skip to content

Commit

Permalink
Matrix test go versions
Browse files Browse the repository at this point in the history
  • Loading branch information
liggitt committed Oct 14, 2024
1 parent 9aa6b5e commit 8c9ff39
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,19 @@ jobs:

ci:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '', '1.x' ] # '' uses go.mod, 1.x uses latest go
steps:
- uses: actions/checkout@v2
with:
path: src/sigs.k8s.io/json/

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: "1.x"
go-version-file: 'go.mod'
go-version: ${{ matrix.go }}
stable: true
check-latest: true

Expand All @@ -45,7 +49,7 @@ jobs:
if: github.base_ref
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: '1.x'
- name: Add GOBIN to PATH
Expand Down

0 comments on commit 8c9ff39

Please sign in to comment.