From 1d68f9506bc4cc32b039ad9afcab4d37d8b53ed7 Mon Sep 17 00:00:00 2001 From: tgiachi Date: Tue, 10 Nov 2026 15:54:29 +0100 Subject: [PATCH 1/2] ci: describe the runner the workflows expect - ci.yaml asks for a docker-labelled runner and runs jobs in the named containers - e2e.yaml says what it needs from a runner and that it has not been run on one --- .forgejo/workflows/ci.yaml | 4 ++-- .forgejo/workflows/e2e.yaml | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index 89f08cd..faafb60 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -1,5 +1,5 @@ -# Runs on Forgejo Actions (Codeberg). Enable Actions in the repository settings and make sure -# a runner with the `docker` label is available; change `runs-on` if yours is named differently. +# Runs on Forgejo Actions. The jobs ask for a runner labelled `docker` that runs each job in the +# container named below; change `runs-on` if your runner is labelled differently. name: ci on: diff --git a/.forgejo/workflows/e2e.yaml b/.forgejo/workflows/e2e.yaml index 16bcf76..9d29f8d 100644 --- a/.forgejo/workflows/e2e.yaml +++ b/.forgejo/workflows/e2e.yaml @@ -1,5 +1,8 @@ # The end-to-end test starts Postfix and parsimony in Docker, so it needs a runner that can run -# Docker itself. Start it by hand from the Actions tab (or run `make e2e` locally). +# Docker itself, with the job on the host network (it talks to published ports on 127.0.0.1 and +# mounts temporary directories). A plain `docker` runner does not give a job a Docker daemon, and +# I have not run this workflow on a runner: use `make e2e` locally. Start it by hand from the +# Actions tab only once you have such a runner. name: e2e on: From a10616e216680d2242726f90b76db8967eaf36df Mon Sep 17 00:00:00 2001 From: tgiachi Date: Tue, 10 Nov 2026 15:57:29 +0100 Subject: [PATCH 2/2] ci: install Node in the golang jobs so the checkout action can run - The golang image has no Node, and actions/checkout is a Node action - The first run on my runner failed in the go and vuln jobs for this reason --- .forgejo/workflows/ci.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index faafb60..d9854ea 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -12,6 +12,9 @@ jobs: runs-on: docker container: golang:1.27 steps: + # The checkout action runs on Node, which the golang image does not carry. + - name: Install Node + run: apt-get update -qq && apt-get install -y -qq nodejs git - uses: actions/checkout@v4 - run: make go-ci @@ -28,5 +31,8 @@ jobs: runs-on: docker container: golang:1.27 steps: + # The checkout action runs on Node, which the golang image does not carry. + - name: Install Node + run: apt-get update -qq && apt-get install -y -qq nodejs git - uses: actions/checkout@v4 - run: make vuln