]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update CI config (#30920)
authorXhmikosR <xhmikosr@gmail.com>
Thu, 28 May 2020 17:28:02 +0000 (20:28 +0300)
committerGitHub <noreply@github.com>
Thu, 28 May 2020 17:28:02 +0000 (20:28 +0300)
* update to `actions/cache@v2`
* stop invalidating the cache if test.yml changes

.github/workflows/test.yml

index 02ce6d19ddeb826bccc52e542fd60a9e8d146a53..a990301dc1dfc51c6c152321e2ba129840912eff 100644 (file)
@@ -25,12 +25,12 @@ jobs:
       - run: java -version
 
       - name: Set up npm cache
-        uses: actions/cache@v1
+        uses: actions/cache@v2
         with:
           path: ~/.npm
-          key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}-${{ hashFiles('.github/workflows/test.yml') }}
+          key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}}
           restore-keys: |
-            ${{ runner.OS }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}-${{ hashFiles('.github/workflows/test.yml') }}
+            ${{ runner.OS }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
             ${{ runner.OS }}-node-v${{ matrix.node }}-
 
       - name: Install npm dependencies