mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 14:13:58 +08:00
Merge pull request #5000 from kolyshkin/1.4-check-go
[1.4] check go version from Dockerfile
This commit is contained in:
@@ -188,8 +188,6 @@ jobs:
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: install deps
|
||||
run: |
|
||||
sudo apt -qq update
|
||||
@@ -199,6 +197,18 @@ 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
|
||||
@@ -206,8 +216,6 @@ jobs:
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: check CHANGELOG.md
|
||||
run: make verify-changelog
|
||||
@@ -236,8 +244,6 @@ jobs:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: install bashbrew
|
||||
env:
|
||||
BASEURL: https://github.com/docker-library/bashbrew/releases/download
|
||||
@@ -259,6 +265,7 @@ jobs:
|
||||
|
||||
all-done:
|
||||
needs:
|
||||
- check-go
|
||||
- cfmt
|
||||
- codespell
|
||||
- commit
|
||||
|
||||
Reference in New Issue
Block a user