From adf745948699a150eea4949e5e9b84e59f26682f Mon Sep 17 00:00:00 2001 From: MaxMustermann2 <82761650+MaxMustermann2@users.noreply.github.com> Date: Thu, 21 Nov 2024 13:12:27 +0000 Subject: [PATCH] fix(ci): apply `needs: cache` --- .github/workflows/forge-ci.yml | 3 +++ .github/workflows/lint.yml | 3 +++ .github/workflows/slither.yml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/.github/workflows/forge-ci.yml b/.github/workflows/forge-ci.yml index 5e5c1b9b..7b71d34b 100644 --- a/.github/workflows/forge-ci.yml +++ b/.github/workflows/forge-ci.yml @@ -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. diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4d55b326..031616bc 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 diff --git a/.github/workflows/slither.yml b/.github/workflows/slither.yml index 85640a0a..f64d6758 100644 --- a/.github/workflows/slither.yml +++ b/.github/workflows/slither.yml @@ -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