Check develop after a merge, not just main

`develop` became the integration branch when #3 merged into it, but CI's push
trigger still named only `main` — so the merge commit itself ran nothing. A
pull request is checked before the merge, not after, which leaves the state of
the branch people actually build from unverified whenever two green pull
requests conflict semantically.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WaySiNst4HhDXBHnMy8p5G
This commit is contained in:
Claude
2026-08-07 12:46:14 +00:00
parent ca89724b88
commit cfad718b0a
+5 -3
View File
@@ -1,10 +1,12 @@
name: CI
# Runs on pull requests and on the branch they merge into, so a green tick means the code was
# checked in the state it will actually land in.
# Runs on pull requests and on the branches they merge into, so a green tick means the code was
# checked in the state it will actually land in. `develop` is where work integrates and `main` is
# what it is promoted to; a merge into either is a state nothing else would otherwise check,
# since a pull request is checked before the merge rather than after it.
on:
push:
branches: [main]
branches: [main, develop]
pull_request:
# A second push to the same branch makes the first run's answer irrelevant.