whisper-money/tests/Browser
Víctor Falcón 6101cfdfa0
fix: Prevent automerge when CI checks have failed (#95)
## Summary

- Fixes a race condition where the automerge workflow merged PR #94
despite `browser-tests` failing
- Adds SHA verification to ensure the CI run matches the PR's latest
commit (prevents stale merges from earlier pushes)
- Adds a failed-checks guard that inspects all PR check statuses before
merging

## What happened

PR #94 had two CI runs: an earlier one that passed and a later one where
`browser-tests` failed. The automerge workflow triggered on the first
successful run and merged the PR before the second run completed,
because it only checked `workflow_run.conclusion == 'success'` without
verifying it was for the latest commit.

## Test plan

- [x] Push a PR with the Automerge label, verify it merges when all
checks pass
- [x] Push a follow-up commit that breaks browser-tests — verify the
earlier success doesn't trigger a merge
- [x] Verify PRs without the Automerge label are unaffected
2026-02-02 08:58:47 +01:00
..
assets Improve automation rules and sync error handling 2025-12-01 10:30:22 +01:00
.gitignore Add category type field support (#2) 2025-12-01 20:19:47 +01:00
AmountInputTest.php Add Budgeting Feature to Track and Manage Spending (#36) 2026-01-21 15:25:50 +01:00
AuthenticationTest.php User Onboarding Flow (#23) 2025-12-12 13:06:08 +01:00
AutomationRuleBuilderTest.php test: Fix and improve Browser test suite (#62) 2026-01-19 10:04:25 +01:00
BankAccountsTest.php fix: Prevent automerge when CI checks have failed (#95) 2026-02-02 08:58:47 +01:00
BudgetCrudTest.php Add Budgeting Feature to Track and Manage Spending (#36) 2026-01-21 15:25:50 +01:00
BudgetsFeatureNavigationTest.php Add Budgeting Feature to Track and Manage Spending (#36) 2026-01-21 15:25:50 +01:00
CategoriesTest.php User Onboarding Flow (#23) 2025-12-12 13:06:08 +01:00
ImportTransactionsTest.php test: Fix and improve Browser test suite (#62) 2026-01-19 10:04:25 +01:00
OnboardingFlowTest.php User Onboarding Flow (#23) 2025-12-12 13:06:08 +01:00
TransactionsTest.php test: Fix and improve Browser test suite (#62) 2026-01-19 10:04:25 +01:00