Skip to content

Commit

Permalink
CI: use Go 1.21
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Lehner <dev@der-flo.net>
  • Loading branch information
florianl committed Sep 20, 2023
1 parent 2323817 commit 58e3b19
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.13.x, 1.19.x, 1.20.x]
go-version: [1.13.x, 1.20.x, 1.21.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -32,18 +32,18 @@ jobs:
if: matrix.platform == 'ubuntu-latest'
run: go test -exec=sudo -tags integration ./...
- name: gofmt check
if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.20')
if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.21')
run: diff <(echo -n) <(gofmt -d .)
- name: staticcheck.io
if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.20')
if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.21')
uses: dominikh/staticcheck-action@v1.3.0
with:
version: "2023.1.5"
install-go: false
cache-key: ${{ matrix.go-version }}
working-directory: .
- name: staticcheck.io - internal
if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.20')
if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.21')
uses: dominikh/staticcheck-action@v1.3.0
with:
version: "2023.1.5"
Expand Down

0 comments on commit 58e3b19

Please sign in to comment.