Add support for Go 1.20 (#1481)

This commit is contained in:
Erik Dubbelboer
2023-02-03 15:41:39 +08:00
committed by GitHub
parent b2e66a55d4
commit 9d5a7bf7e3
10 changed files with 75 additions and 41 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.x
go-version: 1.20.x
- name: Get Go cache paths
id: go-env
@@ -28,7 +28,7 @@ jobs:
${{ steps.go-env.outputs.modcache }}
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.48.0
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.0
- name: Get golangci-lint cache path
id: golangci-lint-cache-status
+2 -2
View File
@@ -8,7 +8,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.19.x]
go-version: [1.20.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
env:
@@ -16,6 +16,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Run Gosec Security Scanner
uses: securego/gosec@v2.12.0
uses: securego/gosec@v2.14.0
with:
args: '-exclude=G104,G304,G402 ./...'
+1 -1
View File
@@ -8,7 +8,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.16.x, 1.17.x, 1.18.x, 1.19.x]
go-version: [1.17.x, 1.18.x, 1.19.x, 1.20.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps: