From 4fe129e3b12f67b58026966c3523752499f1f4c6 Mon Sep 17 00:00:00 2001 From: andreivladbrg Date: Fri, 15 Dec 2023 01:28:29 +0200 Subject: [PATCH] ci: rename cached key ci: restore the node modules in coverage job --- .github/workflows/ci.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9460abe1d..cfea4c1e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,7 +83,7 @@ jobs: - name: "Cache the build and the node modules so that they can be re-used by the other jobs" uses: "actions/cache/save@v3" with: - key: "foundry-build-${{ github.sha }}" + key: "build-and-modules-${{ github.sha }}" path: | cache node_modules @@ -133,7 +133,7 @@ jobs: uses: "actions/cache/restore@v3" with: fail-on-cache-miss: true - key: "foundry-build-${{ github.sha }}" + key: "build-and-modules-${{ github.sha }}" path: | cache node_modules @@ -164,7 +164,7 @@ jobs: uses: "actions/cache/restore@v3" with: fail-on-cache-miss: true - key: "foundry-build-${{ github.sha }}" + key: "build-and-modules-${{ github.sha }}" path: | cache node_modules @@ -193,7 +193,7 @@ jobs: uses: "actions/cache/restore@v3" with: fail-on-cache-miss: true - key: "foundry-build-${{ github.sha }}" + key: "build-and-modules-${{ github.sha }}" path: | cache node_modules @@ -222,7 +222,7 @@ jobs: uses: "actions/cache/restore@v3" with: fail-on-cache-miss: true - key: "foundry-build-${{ github.sha }}" + key: "build-and-modules-${{ github.sha }}" path: | cache node_modules @@ -253,7 +253,7 @@ jobs: uses: "actions/cache/restore@v3" with: fail-on-cache-miss: true - key: "foundry-build-${{ github.sha }}" + key: "build-and-modules-${{ github.sha }}" path: | cache node_modules @@ -282,6 +282,13 @@ jobs: - name: "Install Foundry" uses: "foundry-rs/foundry-toolchain@v1" + - name: "Restore the cached node modules" + uses: "actions/cache/restore@v3" + with: + fail-on-cache-miss: true + key: "build-and-modules-${{ github.sha }}" + path: node_modules + - name: "Generate the coverage report using the unit and the integration tests" run: "forge coverage --match-path \"test/{unit,integration}/**/*.sol\" --report lcov"