Skip to content

Commit 2d3e020

Browse files
CI: add Go 1.24 and reduce diff to config used by restic
1 parent 8ad7cfa commit 2d3e020

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

.github/workflows/tests.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,30 @@ permissions:
1313
contents: read
1414

1515
env:
16-
latest_go: "1.23.x"
16+
latest_go: "1.24.x"
1717
GO111MODULE: on
1818

1919
jobs:
2020
test:
2121
strategy:
2222
matrix:
23-
go:
24-
- 1.23.x
25-
- 1.22.x
26-
runs-on: ubuntu-latest
27-
name: Go ${{ matrix.go }}
23+
include:
24+
- job_name: Linux
25+
go: 1.24.x
26+
os: ubuntu-latest
27+
check_changelog: true
28+
29+
- job_name: Linux (race)
30+
go: 1.24.x
31+
os: ubuntu-latest
32+
test_opts: "-race"
33+
34+
- job_name: Linux
35+
go: 1.23.x
36+
os: ubuntu-latest
37+
38+
name: ${{ matrix.job_name }} Go ${{ matrix.go }}
39+
runs-on: ${{ matrix.os }}
2840

2941
env:
3042
GOPROXY: https://proxy.golang.org
@@ -46,7 +58,7 @@ jobs:
4658
4759
- name: Run local Tests
4860
run: |
49-
go test ./...
61+
go test -cover ${{matrix.test_opts}} ./...
5062
5163
- name: Check changelog files with calens
5264
run: |
@@ -55,6 +67,7 @@ jobs:
5567
5668
echo "check changelog files"
5769
calens
70+
if: matrix.check_changelog
5871

5972
lint:
6073
name: lint
@@ -76,7 +89,7 @@ jobs:
7689
uses: golangci/golangci-lint-action@v6
7790
with:
7891
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
79-
version: v1.63.4
92+
version: v1.64.8
8093
args: --verbose --timeout 5m
8194

8295
# only run golangci-lint for pull requests, otherwise ALL hints get

0 commit comments

Comments
 (0)