Commit 777925f
authored
ci: update lint-and-test.yml (#272)
This pull request updates the `lint-and-test.yml` GitHub Actions
workflow to improve how changes are detected and handled for different
event types. The workflow now better supports merge queue events and
manual runs, ensuring that the correct set of checks is triggered in
each scenario.
Key improvements include:
**Workflow event handling:**
* Added support for the `merge_group` event, enabling the workflow to
run when merge queue checks are requested.
**Change detection logic:**
* Updated the "Detect Changes" job to use different strategies based on
the event type:
- For `merge_group` events, it compares the merge-group head and base
SHAs to detect changes using the `dorny/paths-filter` action.
- For manual (`workflow_dispatch`) runs, it marks all change categories
(`services`, `libs`, `frontend`, `infrastructure`) as changed to ensure
all checks run.
* Modified job outputs to prioritize results from the appropriate
detection step (`filter` or `manual`).
**Minor cleanup:**
* Removed an unnecessary blank line in the `libs` linting job for
clarity.1 parent fd773a4 commit 777925f
1 file changed
+22
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
26 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
43 | 59 | | |
44 | 60 | | |
45 | 61 | | |
| |||
111 | 127 | | |
112 | 128 | | |
113 | 129 | | |
114 | | - | |
115 | 130 | | |
116 | 131 | | |
117 | 132 | | |
| |||
0 commit comments