From 60e89e1931f9a3f13a57810982d8269b8153911d Mon Sep 17 00:00:00 2001 From: Phil Leggetter Date: Tue, 4 Aug 2026 21:21:18 +0100 Subject: [PATCH] ci: run unit tests and builds on push to main MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All functional CI was pull_request-only, so the merged result on main was never tested — a PR based on stale main could merge into an untested combination. Run unit + build jobs on push to main to catch that. Acceptance tests stay PR-gated (live APIs, slow, flaky). Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01UQV9qtvETd62qg2iDRR6kY --- .github/workflows/test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e33ca8b..425f363 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,6 +8,13 @@ on: pull_request: branches: - main + # Run on merge to main so the merged result is tested, not just each PR branch + # in isolation. A PR based on stale main can merge into a combination that no + # PR run exercised; this catches that (compile/unit/build only — acceptance + # tests stay PR-gated because they hit live APIs and are slow/flaky). + push: + branches: + - main # Allow manually triggering CI on a branch workflow_dispatch: {}