Skip to content

Commit

Permalink
ci: update Go to 1.20, drop 1.17
Browse files Browse the repository at this point in the history
Run the formatting and module checks with 1.20.
  • Loading branch information
tklauser committed Feb 2, 2023
1 parent 3d34f95 commit 88e2193
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
env:
CIRRUS_CLONE_DEPTH: 1
GO_VERSION: go1.19.1
GO_VERSION: go1.20

freebsd_12_task:
freebsd_instance:
Expand Down
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@6edd4406fa81c3da01a34fa6f6343087c207a568
with:
go-version: '1.19'
go-version: '1.20'

- name: Check out code
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
build-and-test:
strategy:
matrix:
go-version: [1.17, 1.18, 1.19]
go-version: ['1.18', '1.19', '1.20']
os: [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12]
runs-on: ${{ matrix.os }}

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

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

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

0 comments on commit 88e2193

Please sign in to comment.