Skip to content

Commit

Permalink
.github/workflows: update Go to 1.19, drop 1.16
Browse files Browse the repository at this point in the history
Also run the formatting and module checks with 1.19. Change the checks
and cross-compile step to run on Ubuntu 22.04 instead of 20.04.
  • Loading branch information
tklauser committed Aug 3, 2022
1 parent a4483d8 commit 6597d6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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@84cbf8094393cdc5fe1fe1671ff2647332956b1a
with:
go-version: '1.18'
go-version: '1.19'

- name: Check out code
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
Expand Down
8 changes: 4 additions & 4 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.16', '1.17', '1.18' ]
go-version: [1.17, 1.18, 1.19]
os: [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04, macos-11, macos-12]
runs-on: ${{ matrix.os }}

Expand All @@ -26,17 +26,17 @@ jobs:
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b

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

- name: Check Go modules
if: ${{ matrix.go-version == '1.18' && matrix.os == 'ubuntu-20.04' }}
if: ${{ matrix.go-version == '1.19' && matrix.os == 'ubuntu-22.04' }}
run: |
go mod tidy
git diff --exit-code
- name: Build (cross-compile)
if: matrix.os == 'ubuntu-20.04'
if: matrix.os == 'ubuntu-22.04'
run: |
GOOS=darwin go build ./...
GOOS=dragonfly go build ./...
Expand Down

0 comments on commit 6597d6b

Please sign in to comment.