From 4cd979eb75f8e734e2e839360022ff9f8759f2b4 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Tue, 23 Aug 2022 15:20:46 +0200 Subject: [PATCH 1/2] chore: update GH Actions --- .github/workflows/nodejs.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 5a2c7e68..c6c684ef 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -22,21 +22,15 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 + id: setup with: node-version: ${{ matrix.node-version }} - - name: Restore dependencies cache - uses: actions/cache@v2 - id: cache - with: - path: node_modules - key: ${{ matrix.os }}-{{ matrix.node-version }}-node_modules-${{ hashFiles('**/package.json') }} - restore-keys: | - ${{ matrix.os }}-{{ matrix.node-version }}-node_modules- + cache: npm - name: Install Dependencies - if: steps.cache.outputs.cache-hit != 'true' + if: steps.setup.outputs.cache-hit != 'true' run: npm i - name: Test run: npm run test From 6d2ec7dca233a7967fe5690797d64c3f173006b5 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Tue, 23 Aug 2022 15:24:58 +0200 Subject: [PATCH 2/2] use old cache action --- .github/workflows/nodejs.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index c6c684ef..0706ea22 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -25,12 +25,18 @@ jobs: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 - id: setup with: node-version: ${{ matrix.node-version }} - cache: npm + - name: Restore dependencies cache + uses: actions/cache@v3 + id: cache + with: + path: node_modules + key: ${{ matrix.os }}-{{ matrix.node-version }}-node_modules-${{ hashFiles('**/package.json') }} + restore-keys: | + ${{ matrix.os }}-{{ matrix.node-version }}-node_modules- - name: Install Dependencies - if: steps.setup.outputs.cache-hit != 'true' + if: steps.cache.outputs.cache-hit != 'true' run: npm i - name: Test run: npm run test