From c6288e31700179f7b2182534bce6846778e61555 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 28 May 2020 20:28:02 +0300 Subject: [PATCH] Update CI config (#30920) * update to `actions/cache@v2` * stop invalidating the cache if test.yml changes --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 02ce6d19dd..a990301dc1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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