From f03bba7b239d4c2db78a1cc0cf1cdc94604acfab Mon Sep 17 00:00:00 2001 From: Rien Maertens Date: Thu, 26 Oct 2023 17:37:54 +0200 Subject: [PATCH] Update cache key to include bindings --- .github/workflows/ci-cd.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 6f8057ab9..5a8ec707f 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -74,7 +74,7 @@ jobs: ${{ github.workspace }}/node_modules ${{ github.workspace }}/*/node_modules ${{ github.workspace }}/parsers/build - key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('yarn.lock', 'package.json', '*/package.json') }} + key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('./yarn.lock', './package.json, './*/package.json', './parsers/binding.gyp', './.gitmodules') }} - name: Setup Node 📚 if: steps.cache-dependencies.outputs.cache-hit != 'true' @@ -113,7 +113,7 @@ jobs: ${{ github.workspace }}/node_modules ${{ github.workspace }}/*/node_modules ${{ github.workspace }}/parsers/build - key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('yarn.lock', 'package.json', '*/package.json') }} + key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('./yarn.lock', './package.json, './*/package.json', './parsers/binding.gyp', './.gitmodules') }} - name: Check if cache was hit 🔎 if: steps.cache-dependencies.outputs.cache-hit != 'true' @@ -151,7 +151,7 @@ jobs: ${{ github.workspace }}/node_modules ${{ github.workspace }}/*/node_modules ${{ github.workspace }}/parsers/build - key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('yarn.lock', 'package.json', '*/package.json') }} + key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('./yarn.lock', './package.json, './*/package.json', './parsers/binding.gyp', './.gitmodules') }} - name: Check if cache was hit 🔎 if: steps.cache-dependencies.outputs.cache-hit != 'true' @@ -189,7 +189,7 @@ jobs: ${{ github.workspace }}/node_modules ${{ github.workspace }}/*/node_modules ${{ github.workspace }}/parsers/build - key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('yarn.lock', 'package.json', '*/package.json') }} + key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('./yarn.lock', './package.json, './*/package.json', './parsers/binding.gyp', './.gitmodules') }} - name: Check if cache was hit 🔎 if: steps.cache-dependencies.outputs.cache-hit != 'true' @@ -228,7 +228,7 @@ jobs: ${{ github.workspace }}/node_modules ${{ github.workspace }}/*/node_modules ${{ github.workspace }}/parsers/build - key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('yarn.lock', 'package.json', '*/package.json') }} + key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('./yarn.lock', './package.json, './*/package.json', './parsers/binding.gyp', './.gitmodules') }} - name: Check if cache was hit 🔎 if: steps.cache-dependencies.outputs.cache-hit != 'true' @@ -268,7 +268,7 @@ jobs: ${{ github.workspace }}/node_modules ${{ github.workspace }}/*/node_modules ${{ github.workspace }}/parsers/build - key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('yarn.lock', 'package.json', '*/package.json') }} + key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('./yarn.lock', './package.json, './*/package.json', './parsers/binding.gyp', './.gitmodules') }} - name: Check if cache was hit 🔎 if: steps.cache-dependencies.outputs.cache-hit != 'true' @@ -307,7 +307,7 @@ jobs: ${{ github.workspace }}/node_modules ${{ github.workspace }}/*/node_modules ${{ github.workspace }}/parsers/build - key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('yarn.lock', 'package.json', '*/package.json') }} + key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('./yarn.lock', './package.json, './*/package.json', './parsers/binding.gyp', './.gitmodules') }} - name: Check if cache was hit 🔎 if: steps.cache-dependencies.outputs.cache-hit != 'true' @@ -348,7 +348,7 @@ jobs: ${{ github.workspace }}/node_modules ${{ github.workspace }}/*/node_modules ${{ github.workspace }}/parsers/build - key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('yarn.lock', 'package.json', '*/package.json') }} + key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('./yarn.lock', './package.json, './*/package.json', './parsers/binding.gyp', './.gitmodules') }} - name: Check if cache was hit 🔎 if: steps.cache-dependencies.outputs.cache-hit != 'true' @@ -417,7 +417,7 @@ jobs: ${{ github.workspace }}/node_modules ${{ github.workspace }}/*/node_modules ${{ github.workspace }}/parsers/build - key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('yarn.lock', 'package.json', '*/package.json') }} + key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('./yarn.lock', './package.json, './*/package.json', './parsers/binding.gyp', './.gitmodules') }} - name: Check if cache was hit 🔎 if: steps.cache-dependencies.outputs.cache-hit != 'true' @@ -503,7 +503,7 @@ jobs: ${{ github.workspace }}/node_modules ${{ github.workspace }}/*/node_modules ${{ github.workspace }}/parsers/build - key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('yarn.lock', 'package.json', '*/package.json') }} + key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('./yarn.lock', './package.json, './*/package.json', './parsers/binding.gyp', './.gitmodules') }} - name: Check if cache was hit 🔎 if: steps.cache-dependencies.outputs.cache-hit != 'true'