Skip to content

Commit

Permalink
fix(ci): apply needs: cache
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMustermann2 committed Nov 21, 2024
1 parent 5f7363a commit adf7459
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/forge-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
pr-number: ${{ github.event.pull_request.number || 0 }}

setup:
# delay the job until the cache job is completed, so that the
# status can be commented on the PR.
needs: cache
# A full job can be used as a reusable workflow.
# However, individual steps cannot call a reusable workflow.
# Instead, they can call a composite action.
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
pr-number: ${{ github.event.pull_request.number || 0 }}

lint:
# delay the job until the cache job is completed, so that the
# status can be commented on the PR.
needs: cache
strategy:
fail-fast: true

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/slither.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
pr-number: ${{ github.event.pull_request.number || 0 }}

analyze:
# delay the job until the cache job is completed, so that the
# status can be commented on the PR.
needs: cache
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit adf7459

Please sign in to comment.