From fb77387d26628d691fb985bf6f143d46980b6116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AA=97=E4=BD=A0=E6=98=AF=E5=B0=8F=E7=8C=AB=E5=92=AA?= Date: Mon, 2 Nov 2020 13:15:56 +0800 Subject: [PATCH] test: use action cache v2 (#27491) --- .github/workflows/test.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2215a5df5c..6fd4c0b80a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ jobs: uses: actions/checkout@master - name: cache package-lock.json - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: package-temp-dir key: lock-${{ github.sha }} @@ -27,7 +27,7 @@ jobs: - name: cache node_modules id: node_modules_cache_id - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} @@ -43,25 +43,25 @@ jobs: uses: actions/checkout@master - name: restore cache from package-lock.json - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} - name: cache lib - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: lib key: lib-${{ github.sha }} - name: cache es - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: es key: es-${{ github.sha }} @@ -80,13 +80,13 @@ jobs: uses: actions/checkout@master - name: restore cache from package-lock.json - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} @@ -112,13 +112,13 @@ jobs: uses: actions/checkout@master - name: restore cache from package-lock.json - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} @@ -134,13 +134,13 @@ jobs: uses: actions/checkout@master - name: restore cache from package-lock.json - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} @@ -156,19 +156,19 @@ jobs: uses: actions/checkout@master - name: restore cache from package-lock.json - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} - name: restore cache from lib - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: lib key: lib-${{ github.sha }} @@ -186,19 +186,19 @@ jobs: uses: actions/checkout@master - name: restore cache from package-lock.json - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: package-temp-dir key: lock-${{ github.sha }} - name: restore cache from node_modules - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: node_modules key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} - name: restore cache from es - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: es key: es-${{ github.sha }}