Merge pull request #4999 from kolyshkin/1.3-check-go

[1.3] check/bump go version in Dockerfile
This commit is contained in:
lfbzhm
2025-11-20 17:51:06 +08:00
committed by GitHub
3 changed files with 29 additions and 22 deletions
+3 -3
View File
@@ -44,7 +44,7 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Show host info
run: |
@@ -153,7 +153,7 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: install deps
run: |
@@ -177,7 +177,7 @@ jobs:
timeout-minutes: 30
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- uses: lima-vm/lima-actions/setup@v1
id: lima-actions-setup
+25 -18
View File
@@ -17,7 +17,7 @@ jobs:
keyring:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: check runc.keyring
run: make validate-keyring
@@ -29,7 +29,7 @@ jobs:
checks: write # to allow the action to annotate code in the PR.
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
fetch-depth: 2
- uses: actions/setup-go@v5
@@ -52,7 +52,7 @@ jobs:
go-fix:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
fetch-depth: 2
- uses: actions/setup-go@v5
@@ -73,7 +73,7 @@ jobs:
# Don't ignore C warnings. Note that the output of "go env CGO_CFLAGS" by default is "-g -O2", so we keep them.
CGO_CFLAGS: -g -O2 -Werror
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: install go
uses: actions/setup-go@v5
with:
@@ -90,7 +90,7 @@ jobs:
codespell:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: install deps
# Version of codespell bundled with Ubuntu is way old, so use pip.
run: pip install --break-system-packages codespell==v2.3.0
@@ -100,14 +100,14 @@ jobs:
shfmt:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: shfmt
run: make shfmt
shellcheck:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: install shellcheck
env:
VERSION: v0.10.0
@@ -131,14 +131,14 @@ jobs:
space-at-eol:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- run: rm -fr vendor
- run: if git -P grep -I -n '\s$'; then echo "^^^ extra whitespace at EOL, please fix"; exit 1; fi
deps:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: install go
uses: actions/setup-go@v5
with:
@@ -176,9 +176,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
uses: actions/checkout@v5
- name: install deps
run: |
sudo apt -qq update
@@ -188,15 +186,25 @@ jobs:
make cfmt
git diff --exit-code
check-go:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- name: check Go version
run: |
GO_VER=$(awk -F= '/^ARG\s+GO_VERSION=/ {print $2; quit}' Dockerfile)
echo "Go version used in Dockerfile: $GO_VER"
echo -n "Checking if Go $GO_VER is supported ... "
curl -fsSL https://go.dev/dl/?mode=json | jq -e 'any(.[]; .version | startswith("go'$GO_VER'"))'
echo -n "Checking if Go $GO_VER is tested against ... "
yq -e '.jobs.test.strategy.matrix.go-version | contains(["'$GO_VER'.x"])' .github/workflows/test.yml
release:
timeout-minutes: 30
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
uses: actions/checkout@v5
- name: check CHANGELOG.md
run: make verify-changelog
@@ -224,9 +232,7 @@ jobs:
get-images:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/checkout@v5
- name: install bashbrew
env:
BASEURL: https://github.com/docker-library/bashbrew/releases/download
@@ -248,6 +254,7 @@ jobs:
all-done:
needs:
- check-go
- cfmt
- codespell
- commit
+1 -1
View File
@@ -1,4 +1,4 @@
ARG GO_VERSION=1.23
ARG GO_VERSION=1.24
ARG BATS_VERSION=v1.11.0
ARG LIBSECCOMP_VERSION=2.5.6