Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
[actions] Upgrade cache to v2 (#2872)
Browse files Browse the repository at this point in the history
* Upgrade cache to v2

* update key

* Update test.yml
  • Loading branch information
EvanBacon authored Nov 12, 2020
1 parent be8db0a commit 9bd2f8f
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 9bd2f8f

Please sign in to comment.