CI: add Go 1.24 and reduce diff to config used by restic

This commit is contained in:
Michael Eischer 2025-04-14 20:40:17 +02:00
parent 8ad7cfa60a
commit 2d3e02017b

View file

@ -13,18 +13,30 @@ permissions:
contents: read contents: read
env: env:
latest_go: "1.23.x" latest_go: "1.24.x"
GO111MODULE: on GO111MODULE: on
jobs: jobs:
test: test:
strategy: strategy:
matrix: matrix:
go: include:
- 1.23.x - job_name: Linux
- 1.22.x go: 1.24.x
runs-on: ubuntu-latest os: ubuntu-latest
name: Go ${{ matrix.go }} check_changelog: true
- job_name: Linux (race)
go: 1.24.x
os: ubuntu-latest
test_opts: "-race"
- job_name: Linux
go: 1.23.x
os: ubuntu-latest
name: ${{ matrix.job_name }} Go ${{ matrix.go }}
runs-on: ${{ matrix.os }}
env: env:
GOPROXY: https://proxy.golang.org GOPROXY: https://proxy.golang.org
@ -46,7 +58,7 @@ jobs:
- name: Run local Tests - name: Run local Tests
run: | run: |
go test ./... go test -cover ${{matrix.test_opts}} ./...
- name: Check changelog files with calens - name: Check changelog files with calens
run: | run: |
@ -55,6 +67,7 @@ jobs:
echo "check changelog files" echo "check changelog files"
calens calens
if: matrix.check_changelog
lint: lint:
name: lint name: lint
@ -76,7 +89,7 @@ jobs:
uses: golangci/golangci-lint-action@v6 uses: golangci/golangci-lint-action@v6
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.63.4 version: v1.64.8
args: --verbose --timeout 5m args: --verbose --timeout 5m
# only run golangci-lint for pull requests, otherwise ALL hints get # only run golangci-lint for pull requests, otherwise ALL hints get