Skip to content

Commit

Permalink
.github/workflows: test on Go 1.21
Browse files Browse the repository at this point in the history
Run the build checks on 1.18 (the oldest supported version) and the latest two
releases supported by upstream Go: 1.20 and 1.21. Run the static check
on Go 1.21.
  • Loading branch information
tklauser committed Aug 24, 2023
1 parent 124e024 commit 6568f50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
# Oldest we support is 1.18, plus the latest two releases.
go-version: ['1.18', '1.19', '1.20']
go-version: ['1.18', '1.20', '1.21']
runs-on: ubuntu-latest

steps:
Expand All @@ -27,13 +27,13 @@ jobs:
uses: actions/checkout@v3

- name: Check Go modules
if: matrix.go-version == '1.20'
if: matrix.go-version == '1.21'
run: |
go mod tidy
git diff --exit-code
- name: Check formatting
if: matrix.go-version == '1.20'
if: matrix.go-version == '1.21'
run: diff -u <(echo -n) <(gofmt -d .)

- name: Run tests on linux
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staticcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.20'
go-version: '1.21'

- name: Check out code
uses: actions/checkout@v3
Expand Down

0 comments on commit 6568f50

Please sign in to comment.