]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Actions: add npm cache (#29765)
authorXhmikosR <xhmikosr@gmail.com>
Fri, 13 Dec 2019 15:12:03 +0000 (17:12 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Dec 2019 15:12:03 +0000 (17:12 +0200)
.github/workflows/test.yml

index 104d9fa2225e51c8fa3c39e872a89e871e9af99c..04dd494854e02cea14c26fe33b531c7f27f361dc 100644 (file)
@@ -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