diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 65ed218c..e45f4e81 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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