File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,20 +10,23 @@ jobs:
1010 # Linter checker
1111 #
1212 linters :
13- name : Linters
13+ name : Linters (${{ matrix.go-version || 'minimum' }})
1414 runs-on : ubuntu-22.04
1515 timeout-minutes : 10
1616
1717 strategy :
1818 matrix :
19- go-version : [1.26]
20-
19+ go-version :
20+ - " " # empty; fall back on go-version-file (use go.mod); see https://github.com/actions/setup-go/issues/450#issuecomment-3620402646
21+ - 1.26
2122 steps :
22- - uses : actions/setup-go@v6
23+ - uses : actions/checkout@v6
24+ - name : install Go
25+ uses : actions/setup-go@v6
2326 with :
2427 go-version : ${{ matrix.go-version }}
25-
26- - uses : actions/checkout@v6
28+ go-version-file : " go.mod " # used when go-version is not specified.
29+ check-latest : true
2730 - uses : golangci/golangci-lint-action@v9
2831 with :
2932 version : v2.9
Original file line number Diff line number Diff line change 99
1010jobs :
1111 unit-test :
12- name : Unit Test
12+ name : Unit Test (${{ matrix.go-version || 'minimum' }})
1313 runs-on : ubuntu-22.04
1414 timeout-minutes : 10
15-
15+ strategy :
16+ matrix :
17+ go-version :
18+ - " " # empty; fall back on go-version-file (use go.mod); see https://github.com/actions/setup-go/issues/450#issuecomment-3620402646
19+ - 1.26
1620 steps :
1721 - uses : actions/checkout@v6
1822 with :
2226 - name : install Go
2327 uses : actions/setup-go@v6
2428 with :
25- go-version : ' 1.26'
29+ go-version : ${{ matrix.go-version }}
30+ go-version-file : " go.mod" # used when go-version is not specified.
31+ check-latest : true
2632
2733 - name : set env
2834 shell : bash
Original file line number Diff line number Diff line change 1414
1515jobs :
1616 run-ci-userspace-convertor :
17- name : Run CI | Userspace Convertor
17+ name : Run CI | Userspace Convertor (${{ matrix.go-version || 'minimum' }})
1818 runs-on : ubuntu-22.04
1919 timeout-minutes : 10
20+ strategy :
21+ matrix :
22+ go-version :
23+ - " " # empty; fall back on go-version-file (use go.mod); see https://github.com/actions/setup-go/issues/450#issuecomment-3620402646
24+ - 1.26
2025 container :
2126 image : ghcr.io/${{ inputs.github-repository }}/overlaybd-ci-images:${{ inputs.image-tag }}
2227 credentials :
8590 - name : install Go
8691 uses : actions/setup-go@v6
8792 with :
88- go-version : ' 1.26'
93+ go-version : ${{ matrix.go-version }}
94+ go-version-file : " go.mod" # used when go-version is not specified.
95+ check-latest : true
8996
9097 - name : set env
9198 shell : bash
Original file line number Diff line number Diff line change 2525 - uses : actions/setup-go@v6
2626 with :
2727 go-version : ' 1.26'
28+ check-latest : true
2829
2930 # Initializes the CodeQL tools for scanning.
3031 - name : Initialize CodeQL
Original file line number Diff line number Diff line change 11module github.com/containerd/accelerated-container-image
22
3- go 1.26.0
3+ // The go directive declares the minimum Go version required for this module.
4+ //
5+ // DO NOT change this version unless support for older Go versions is dropped
6+ // or the module requires newer Go features. To update the version used for CI
7+ // and releases, update "go-version" and "GO_VERSION" in "/.github/workflows".
8+ go 1.25
49
510require (
611 github.com/containerd/containerd/api v1.8.0
You can’t perform that action at this time.
0 commit comments