Commit 3eba22c
committed
ci: run tests and phpstan on pull requests
Both workflows only triggered on push, so a pull request from a fork ran
no tests and no static analysis at all: the checks appeared on the
branch after a merge, which is the wrong side of the decision. That
matters more than usual here because dependabot-auto-merge.yml runs on
pull_request_target and calls `gh pr merge --auto` for every semver
minor and patch bump, so dependency updates could reach main without a
single test having run against them.
Push is now scoped to main, so a branch that has a pull request open
gets one run rather than two.1 parent 2c37af3 commit 3eba22c
2 files changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
5 | 12 | | |
6 | 13 | | |
7 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
5 | 14 | | |
6 | 15 | | |
7 | 16 | | |
| |||
0 commit comments