From 517bf211965eb25fee09fe4d8558229d03e1c87a Mon Sep 17 00:00:00 2001 From: Ivan Husev Date: Fri, 4 Dec 2026 14:25:52 +0200 Subject: [PATCH] ci: CI runs in the merge queue of main DevFo-OSS/17 --- .github/workflows/ci.yml | 2 ++ CLAUDE.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d4b5462..4077481 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,8 @@ on: push: branches: [main] pull_request: + # The merge queue of main: a pull request merges once CI passes on it merged with those ahead. + merge_group: # Run by hand: Actions › CI › Run workflow. workflow_dispatch: diff --git a/CLAUDE.md b/CLAUDE.md index 8c26955..356a712 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -31,7 +31,7 @@ go test ./web # checks a bui Do not start the server (`make run`, `docker run`, …) yourself; the user runs it in their own terminal. Check it with `curl localhost:8000/health` and ask the user to start it if it is not reachable. `make run` loads `.env` and `.env.local` (gitignored; template in `.env.example`); without projects (added on the Projects page or by `create_project`) every event is rejected: the start logs a warning, each rejected envelope only a debug line (`LOG_LEVEL=debug`). `.env.example` is a working local setup (the first admin set up with `exceptic`/`exceptic`, an API token; a project is added on the Projects page), short, every variable only in `docs/configuration.md`; real keys and passwords go into `.env.local` and never into it. `go run` does not rebuild on change: after editing Go code (or rebuilding the web app, which is embedded), the user must restart it. -The image has a writable `/tmp` (scratch has none). CI (`.github/workflows/ci.yml`) runs golangci-lint (pinned version), `make test`, `make vulncheck`, `make web-check web` with `go test ./web`, an amd64 image build with the size check and an arm64 build. `make release` (`tools/release.sh`, as hothost's build.sh: from this machine, no CI secrets; the version from the commits since the last release as semantic-release reads them (AdminForth): a breaking change the major, `feat:` the minor, `fix:`/`perf:` the patch, none of them nothing to release; asked for confirmation; or `VERSION=X.Y.Z`) checks that `main` is clean, pushed and green on CI for that commit (`gh run list`), builds the image with the size check, pushes `devforth/exceptic:X.Y.Z`, `:X.Y` and `:latest` (a pre-release `X.Y.Z-rc.1` only its own) for amd64 and arm64 with the machine's `docker login` (buildx), tags the commit `vX.Y.Z` and makes its GitHub release (`gh release create`, the commits since the previous tag; a pre-release marked so), and for a release replaces the description on Docker Hub with `docs/dockerhub.md` (short, links to GitHub by absolute URL, since Docker Hub resolves no relative link; markers of its copied blocks stripped) when `DOCKERHUB_USERNAME` and `DOCKERHUB_TOKEN` (Read, Write & Delete) are in the environment or `.env.local`. `image-scan.yml` runs Trivy weekly over the published `:latest` (fixable HIGH/CRITICAL fail the run: a patch release with a newer Go or module). `compose.yml` is the example deployment the docs refer to; its `caddy` profile (`COMPOSE_PROFILES=caddy` in `.env`) adds Caddy with HTTPS on the host's network as `caddy reverse-proxy --from $PUBLIC_URL` (no Caddyfile; that command has no admin API; Exceptic limits request bodies itself). +The image has a writable `/tmp` (scratch has none). CI (`.github/workflows/ci.yml`, on pull requests, on main and in the merge queue of main (`merge_group`): `main` takes pull requests only through the queue, which tests each merged with those ahead and merges it with its title as the commit's subject) runs golangci-lint (pinned version), `make test`, `make vulncheck`, `make web-check web` with `go test ./web`, an amd64 image build with the size check and an arm64 build. `make release` (`tools/release.sh`, as hothost's build.sh: from this machine, no CI secrets; the version from the commits since the last release as semantic-release reads them (AdminForth): a breaking change the major, `feat:` the minor, `fix:`/`perf:` the patch, none of them nothing to release; asked for confirmation; or `VERSION=X.Y.Z`) checks that `main` is clean, pushed and green on CI for that commit (`gh run list`), builds the image with the size check, pushes `devforth/exceptic:X.Y.Z`, `:X.Y` and `:latest` (a pre-release `X.Y.Z-rc.1` only its own) for amd64 and arm64 with the machine's `docker login` (buildx), tags the commit `vX.Y.Z` and makes its GitHub release (`gh release create`, the commits since the previous tag; a pre-release marked so), and for a release replaces the description on Docker Hub with `docs/dockerhub.md` (short, links to GitHub by absolute URL, since Docker Hub resolves no relative link; markers of its copied blocks stripped) when `DOCKERHUB_USERNAME` and `DOCKERHUB_TOKEN` (Read, Write & Delete) are in the environment or `.env.local`. `image-scan.yml` runs Trivy weekly over the published `:latest` (fixable HIGH/CRITICAL fail the run: a patch release with a newer Go or module). `compose.yml` is the example deployment the docs refer to; its `caddy` profile (`COMPOSE_PROFILES=caddy` in `.env`) adds Caddy with HTTPS on the host's network as `caddy reverse-proxy --from $PUBLIC_URL` (no Caddyfile; that command has no admin API; Exceptic limits request bodies itself). ## Architecture