ci: add workflow_dispatch and take the Go version from go.mod
The runner this targets is a containerized act_runner registered with the ubuntu-latest label, separate from maas-builder: that one runs in host mode as root on the image build machine, which is not somewhere a test suite belongs. workflow_dispatch lets the queued runs be retried from the UI once a runner exists, without needing an empty commit. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
28029eb43b
commit
664c8e9126
1 file changed
+10
-1
+10
-1
@@ -1,9 +1,17 @@
|
||||
# Runs on a containerized act_runner (label: ubuntu-latest).
|
||||
#
|
||||
# The runner needs outbound access to the Docker registry for its job image and
|
||||
# to github.com for the actions below. If GitHub is unreachable from the runner,
|
||||
# replace the checkout step with a plain `git clone` and install Go by hand —
|
||||
# see .gitea/workflows/README.md in maas-proxmox for that pattern.
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
# Lets a queued or failed run be retried from the UI without a new commit.
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
@@ -13,7 +21,8 @@ jobs:
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: "1.26"
|
||||
# Track the toolchain in go.mod rather than pinning it twice.
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- name: Check formatting
|
||||
|
||||
Reference in new issue
Block a user