From 9bd2f8fe14c4fed30e60ec2e11bc3d54fa0e34dd Mon Sep 17 00:00:00 2001 From: Evan Bacon Date: Thu, 12 Nov 2020 02:06:08 +0100 Subject: [PATCH] [actions] Upgrade cache to v2 (#2872) * Upgrade cache to v2 * update key * Update test.yml --- .github/workflows/test.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2f9ce8e385..f407166d09 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,11 +23,10 @@ jobs: - run: yarn install --frozen-lockfile --check-files - run: yarn lerna run prepare --stream - run: yarn lint --max-warnings=0 - - uses: actions/cache@v1 - id: cache-build + - uses: actions/cache@v2 with: - path: '.' - key: ${{ github.sha }}-${{ matrix.node }} + path: '*' + key: v2-${{ github.sha }}-${{ matrix.node }} test: runs-on: ubuntu-latest needs: build @@ -58,11 +57,10 @@ jobs: ] name: Test ${{ matrix.package }} on Node ${{ matrix.node }} steps: - - uses: actions/cache@v1 - id: restore-build + - uses: actions/cache@v2 with: - path: '.' - key: ${{ github.sha }}-${{ matrix.node }} + path: '*' + key: v2-${{ github.sha }}-${{ matrix.node }} - name: Set up Node uses: actions/setup-node@v1 with: @@ -89,11 +87,10 @@ jobs: fail-fast: false name: Expo Webpack steps: - - uses: actions/cache@v1 - id: restore-build + - uses: actions/cache@v2 with: - path: '.' - key: ${{ github.sha }} + path: '*' + key: v2-${{ github.sha }}-${{ matrix.node }} - name: Install puppeteer working-directory: packages/webpack-config run: yarn add -D puppeteer@3.1.0