Commit 2db2c21
authored
fix: Don’t test draft PRs. Don’t do multiple “Test” runs at once. (#108)
Part of
github/continuous-ai-for-accessibility#31
(Hubber access only).
This PR prevents a ‘thundering herd’-like problem: A PR would trigger
the “Test” workflow which, in turn, opens 6 more PRs which, in turn,
each trigger “Test” and open more PRs, etc. It does this by
early-exiting for draft PRs (like the 6). (Additionally, these cascading
“Test” runs would always fail: The PRs fix issues, so assertions re:
number of known/expected findings in “site-with-issues” fail.)
This PR also modifies workflow triggers to reduce instances where the
same code is tested twice. For example, since this repo enforces PRs,
`on.push.main` was redundant. This conserves our request quota.
This PR also prevents multiple “Test” workflows from running at once
(which would cause cache collisions). It continues to allow multiple
sites to be scanned concurrently _within_ a workflow run (which does not
cause cache collisions).1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
| |||
0 commit comments