Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Show host info
run: |
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
steps:

- name: checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: install deps
run: |
Expand All @@ -180,7 +180,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
Expand Down
43 changes: 25 additions & 18 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,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

Expand All @@ -28,7 +28,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
Expand All @@ -50,7 +50,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
Expand All @@ -71,7 +71,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:
Expand All @@ -82,7 +82,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
Expand All @@ -92,14 +92,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
Expand All @@ -123,14 +123,14 @@ jobs:
space-at-eol:
runs-on: ubuntu-latest
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:
Expand Down Expand Up @@ -165,9 +165,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
Expand All @@ -177,15 +175,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
Expand Down Expand Up @@ -213,9 +221,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
Expand All @@ -237,6 +243,7 @@ jobs:

all-done:
needs:
- check-go
- cfmt
- codespell
- commit
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG GO_VERSION=1.23
ARG GO_VERSION=1.24
ARG BATS_VERSION=v1.9.0
ARG LIBSECCOMP_VERSION=2.5.5

Expand Down