Skip to content

Commit 8f6a4fa

Browse files
authored
Merge pull request #29 from thaJeztah/update_actions
ci: use go.mod for "minimum" Go version, and use custom name
2 parents 173ca94 + d1bfc63 commit 8f6a4fa

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ permissions:
1111

1212
jobs:
1313
build:
14+
name: ${{ matrix.os }} / ${{ matrix.go-version || 'minimum' }}
1415
strategy:
1516
matrix:
1617
go-version:
17-
- 1.25.x # oldest supported (see go.mod)
18+
- "" # leave empty to use go-version-file (use go.mod); see https://github.com/actions/setup-go/issues/450#issuecomment-3620402646
1819
- oldstable
1920
- stable
2021
os: [ubuntu-latest, windows-latest, macos-latest]
@@ -29,6 +30,7 @@ jobs:
2930
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
3031
with:
3132
go-version: ${{ matrix.go-version }}
33+
go-version-file: go.mod # used when go-version is empty.
3234

3335
- name: lint
3436
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/moby/go-archive
22

3-
go 1.25.0
3+
go 1.25
44

55
require (
66
github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6

0 commit comments

Comments
 (0)