From 50020b0cb75791e73741e44295a4c8631cd6a854 Mon Sep 17 00:00:00 2001 From: Julian Hammer Date: Thu, 21 Nov 2024 19:51:34 +0000 Subject: [PATCH] chore(ci): update caching strategy in GitHub Actions workflow for Node modules --- .github/workflows/test.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 03db250..27bc858 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,20 +14,20 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Cache Node Modules + - uses: actions/checkout@v2 + - name: Cache Node Modules id: realgolfgames-logs-cache-node-modules uses: actions/cache@v2 - env: - cache-name: cache-node-modules + env: + cache-name: cache-node-modules with: - path: ~/.npm - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - ${{ runner.os }}-build- - ${{ runner.os }}- - - - name: Install dependencies + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + + - name: Install dependencies if: steps.realgolfgames-logs-cache-node-modules.outputs.cache-hit != 'true' run: npm install