ci: run tests on PRs only #2

Merged
maximus merged 3 commits from ci/pr-only into main 2026-11-22 10:46:16 +00:00
Member

Main is fast-forward only and blocks outdated branches, so the merged tree is exactly the tree the PR tested. Running the test workflow again on every branch push and on main after the merge duplicates CI on shared runners. The test workflow now runs on pull_request (and workflow_dispatch) only, with a concurrency group so a new push cancels the superseded run. Delivery workflows are unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XMf4EHDsxSUaKJC2q1H41t

Main is fast-forward only and blocks outdated branches, so the merged tree is exactly the tree the PR tested. Running the test workflow again on every branch push and on main after the merge duplicates CI on shared runners. The test workflow now runs on pull_request (and workflow_dispatch) only, with a concurrency group so a new push cancels the superseded run. Delivery workflows are unchanged. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01XMf4EHDsxSUaKJC2q1H41t
ci: run tests on PRs only
Some checks failed
check / check (pull_request) Has been cancelled
bf072b1855
Main is fast-forward only and blocks outdated branches, so the merged tree is exactly the tree the PR tested; running the same tests again on every branch push and on main after the merge duplicates CI on a shared runner. Test workflows now run on pull_request (and workflow_dispatch) only, with a concurrency group so a new push cancels the superseded run. Delivery workflows (tags, deploys) are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XMf4EHDsxSUaKJC2q1H41t
ci: skip test jobs on fork pull requests
All checks were successful
check / check (pull_request) Successful in 43s
2eccbe4227
Self-hosted runners sit on the homelab network, so a pull_request run from a fork would execute outside code there. Test jobs now run only for same-repository PRs (and non-PR events such as workflow_dispatch); merge-train rung PRs are same-repository and still run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XMf4EHDsxSUaKJC2q1H41t
ci: also skip AGit pull requests on test jobs
All checks were successful
check / check (pull_request) Successful in 11s
c5e2cabe5e
An AGit PR (flow 1) has head repo == base repo, so the fork check alone lets it through to the shared runner. Test jobs now also require pull_request.flow == 0 (branch PR); non-PR events short-circuit before the expression is read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XMf4EHDsxSUaKJC2q1H41t
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
public/matrix-authentication-service!2
No description provided.