]> 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)
committerXhmikosR <xhmikosr@gmail.com>
Sat, 14 Dec 2019 15:09:46 +0000 (17:09 +0200)
.github/workflows/test.yml

index 9f1b9fb573fa9e2a1c8dee773ca068f3bfd4af97..994972a0379d258d8633bf5c1cc7f119c7c92060 100644 (file)
@@ -42,6 +42,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 install