aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2019-12-13 17:12:03 +0200
committerGitHub <[email protected]>2019-12-13 17:12:03 +0200
commit9c784e45f1c6e27273049b2aeb421fe0182d1b0e (patch)
treea48f26b1f1aff7c21e3446d9082c86c044747129 /.github
parentc26636d56b3df4ff97d1752703e123cbca933e22 (diff)
downloadbootstrap-9c784e45f1c6e27273049b2aeb421fe0182d1b0e.tar.xz
bootstrap-9c784e45f1c6e27273049b2aeb421fe0182d1b0e.zip
Actions: add npm cache (#29765)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/test.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 104d9fa22..04dd49485 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -26,6 +26,16 @@ jobs:
- run: npm --version
- run: java -version
+ - name: Set up npm cache
+ uses: actions/cache@v1
+ with:
+ path: ~/.npm
+ key: ${{ runner.os }}-node-v{{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}-${{ hashFiles('.github/workflows/test.yml') }}
+ restore-keys: |
+ ${{ runner.OS }}-node-v{{ matrix.node }}-${{ env.cache-name }}-
+ ${{ runner.OS }}-node-v{{ matrix.node }}-
+ ${{ runner.OS }}-
+
- name: Install npm dependencies
run: npm ci