Skip to content

Commit 694e9c8

Browse files
committed
ci: drop Go 1.18 from CI matrix
Remove 1.18.x from the test matrix and the associated "Set PACKAGES env" step that filtered modules based on their minimum Go version. All modules now require a Go version covered by oldstable/stable. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
1 parent 51a742c commit 694e9c8

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
test:
2020
strategy:
2121
matrix:
22-
go-version: [1.18.x, oldstable, stable]
22+
go-version: [oldstable, stable]
2323
platform: [ubuntu-22.04, ubuntu-24.04, windows-2022, windows-2025, macos-15, macos-26]
2424
runs-on: ${{ matrix.platform }}
2525
timeout-minutes: 10 # guardrails timeout for the whole job
@@ -44,24 +44,6 @@ jobs:
4444
# We don't need to run golangci-lint here yet, but
4545
# there's no way to avoid it, so run it on one module.
4646
working-directory: ./mountinfo
47-
- name: Set PACKAGES env
48-
if: ${{ matrix.go-version == '1.18.x' }}
49-
run: |
50-
# Check if the module supports this version of Go.
51-
go_version="$(go env GOVERSION)"
52-
go_version="${go_version#go}"
53-
54-
packages=""
55-
for p in */; do
56-
[ -f "$p/go.mod" ] || continue
57-
if ! (cd "$p" && go list -m -f "{{if gt .GoVersion \"$go_version\"}}ko{{end}}" | grep -q ko); then
58-
packages+="${p%/} "
59-
else
60-
echo "::notice::SKIP: github.com/moby/sys/${p%/} requires a more recent version of Go"
61-
fi
62-
done
63-
64-
echo "PACKAGES=${packages}" >> "$GITHUB_ENV"
6547
- name: go mod tidy
6648
run: |
6749
make foreach CMD="go mod tidy"

0 commit comments

Comments
 (0)