From 75221c24f6120745da3712fafce9f27320050978 Mon Sep 17 00:00:00 2001 From: divlo Date: Thu, 29 Oct 2020 16:47:15 +0100 Subject: [PATCH] ci: update node.js to cache dependencies --- .github/dependabot.yml | 15 --------------- .github/workflows/node.js.yml | 15 +++++++++++++-- 2 files changed, 13 insertions(+), 17 deletions(-) delete mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index f7f14fa..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,15 +0,0 @@ -# For more information see: https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: - - package-ecosystem: 'github-actions' - directory: '/' - schedule: - interval: 'monthly' - - - package-ecosystem: 'npm' - versioning-strategy: 'auto' - directory: '/' - open-pull-requests-limit: 10 - schedule: - interval: 'monthly' diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index f5e1b1e..a15428f 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -20,5 +20,16 @@ jobs: uses: actions/setup-node@v2.1.2 with: node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run test + + - name: 'Install dependencies' + run: npm ci + + - name: 'Run the tests' + run: npm test + + - name: 'Cache dependencies' + uses: actions/cache@v2 + with: + path: | + **/node_modules + key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}