ccsync
ccsync copied to clipboard
Chore Backend tests do not run on pull requests
Problem
Backend tests are currently configured to run only on pushes to the main branch.
When contributors open or update a pull request, backend tests are not executed.
Why this is an issue
- Pull requests can be merged without backend test coverage
- Broken backend changes may reach
main - Contributors do not get early feedback
Expected behavior: Backend tests should also run when a pull request targets main or dev, so failures are caught before merging.
Current configuration
The workflow in .github/workflows/backend-test.yml is triggered only on:
on:
push:
branches:
- main
### Suggested fix
on:
push:
branches:
- main
pull_request:
branches:
- main
- dev