Skip to content

Commit 062b1cb

Browse files
committed
Ensure build jobs depend on the diagnostics job
This ensures consistent and expected behavior without relying on a chained dependency in the `needs` declarations.
1 parent 862d289 commit 062b1cb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ jobs:
170170
if: env.RUN_TMATE
171171
test:
172172
runs-on: ubuntu-latest
173-
needs: lint
173+
needs:
174+
- diagnostics
175+
- lint
174176
steps:
175177
- id: harden-runner
176178
name: Harden the runner
@@ -210,6 +212,7 @@ jobs:
210212
build:
211213
runs-on: ubuntu-latest
212214
needs:
215+
- diagnostics
213216
- lint
214217
- test
215218
strategy:

0 commit comments

Comments
 (0)