Skip to content

Commit

Permalink
Ensure build jobs depend on the diagnostics job
Browse files Browse the repository at this point in the history
This ensures consistent and expected behavior without relying on a
chained dependency in the `needs` declarations.
  • Loading branch information
mcdonnnj committed May 14, 2024
1 parent 546734a commit 0014c33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ jobs:
if: env.RUN_TMATE
test:
runs-on: ubuntu-latest
needs: lint
needs:
- diagnostics
- lint
steps:
- id: harden-runner
name: Harden the runner
Expand Down Expand Up @@ -210,6 +212,7 @@ jobs:
build:
runs-on: ubuntu-latest
needs:
- diagnostics
- lint
- test
strategy:
Expand Down

0 comments on commit 0014c33

Please sign in to comment.