Commit 491a8c6
committed
format-check: rework to test modified files only
The Github UI for required checks does not integrate with the workflows
described in the .github directory. Currently jobs that are never
started due to conditional execution are not even reported, so the UI
shows "expected" and locks up merges.
Rework the format-check workflow to first list the modified files that
need to be checked, and then run the check only on those files. This
way the test runs on every pull request, but has minimal impact unless
one or more source files are actually modified.
Requires a branched version of jidicula/clang-format-action 4.15.0 that
adds the 'check-files-from' input parameter.
Signed-off-by: Luca Burelli <l.burelli@arduino.cc>1 parent a26551e commit 491a8c6
1 file changed
+22
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 7 | | |
13 | 8 | | |
14 | 9 | | |
| |||
18 | 13 | | |
19 | 14 | | |
20 | 15 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 16 | | |
34 | 17 | | |
35 | | - | |
| 18 | + | |
36 | 19 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 20 | | |
49 | 21 | | |
50 | 22 | | |
51 | 23 | | |
52 | 24 | | |
53 | 25 | | |
54 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
55 | 44 | | |
56 | | - | |
| 45 | + | |
| 46 | + | |
57 | 47 | | |
58 | 48 | | |
59 | | - | |
60 | | - | |
| 49 | + | |
0 commit comments