Merge pull request #4243 from restic/update-go

Run tests with Go 1.20
This commit is contained in:
Michael Eischer 2023-03-12 18:15:54 +01:00 committed by GitHub
commit 23ed03a267
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 7 deletions

View File

@ -9,7 +9,7 @@ on:
pull_request: pull_request:
env: env:
latest_go: "1.19.x" latest_go: "1.20.x"
GO111MODULE: on GO111MODULE: on
jobs: jobs:
@ -19,27 +19,32 @@ jobs:
# list of jobs to run: # list of jobs to run:
include: include:
- job_name: Windows - job_name: Windows
go: 1.19.x go: 1.20.x
os: windows-latest os: windows-latest
- job_name: macOS - job_name: macOS
go: 1.19.x go: 1.20.x
os: macOS-latest os: macOS-latest
test_fuse: false test_fuse: false
- job_name: Linux - job_name: Linux
go: 1.19.x go: 1.20.x
os: ubuntu-latest os: ubuntu-latest
test_cloud_backends: true test_cloud_backends: true
test_fuse: true test_fuse: true
check_changelog: true check_changelog: true
- job_name: Linux (race) - job_name: Linux (race)
go: 1.19.x go: 1.20.x
os: ubuntu-latest os: ubuntu-latest
test_fuse: true test_fuse: true
test_opts: "-race" test_opts: "-race"
- job_name: Linux
go: 1.19.x
os: ubuntu-latest
test_fuse: true
- job_name: Linux - job_name: Linux
go: 1.18.x go: 1.18.x
os: ubuntu-latest os: ubuntu-latest
@ -253,10 +258,10 @@ jobs:
uses: golangci/golangci-lint-action@v3 uses: golangci/golangci-lint-action@v3
with: with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.49 version: v1.51
# Optional: show only new issues if it's a pull request. The default value is `false`. # Optional: show only new issues if it's a pull request. The default value is `false`.
only-new-issues: true only-new-issues: true
args: --verbose --timeout 5m args: --verbose --timeout 10m
# only run golangci-lint for pull requests, otherwise ALL hints get # only run golangci-lint for pull requests, otherwise ALL hints get
# reported. We need to slowly address all issues until we can enable # reported. We need to slowly address all issues until we can enable