Skip to content

Commit

Permalink
ci: update Go to 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
tklauser committed Mar 5, 2024
1 parent a4b4e92 commit e473ca6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: '1.21'
go-version: '1.22'

- name: Check out code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
build-and-test:
strategy:
matrix:
go-version: ['1.18', '1.20', '1.21']
# Oldest supported version is 1.18, plus the latest two releases.
go-version: ['1.18', '1.21', '1.22']
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}

Expand All @@ -26,11 +27,11 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Check formatting
if: ${{ matrix.go-version == '1.21' && matrix.os == 'ubuntu-latest' }}
if: ${{ matrix.go-version == '1.22' && matrix.os == 'ubuntu-latest' }}
run: diff -u <(echo -n) <(gofmt -d .)

- name: Check Go modules
if: ${{ matrix.go-version == '1.21' && matrix.os == 'ubuntu-latest' }}
if: ${{ matrix.go-version == '1.22' && matrix.os == 'ubuntu-latest' }}
run: |
go mod tidy
git diff --exit-code
Expand Down

0 comments on commit e473ca6

Please sign in to comment.