Skip to content

Commit

Permalink
Cache yarn install in GitHub Actions (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
danoc authored Jun 17, 2020
1 parent 1ed8351 commit e4f1b1f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Restore Yarn cache
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: |
yarn install --frozen-lockfile
Expand All @@ -27,6 +34,13 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Restore Yarn cache
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: |
yarn install --frozen-lockfile
Expand All @@ -42,6 +56,13 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Restore Yarn cache
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: |
yarn install --frozen-lockfile
Expand All @@ -57,6 +78,13 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Restore Yarn cache
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: |
yarn install --frozen-lockfile
Expand All @@ -72,6 +100,13 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Restore Yarn cache
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: |
yarn install --frozen-lockfile
Expand Down

0 comments on commit e4f1b1f

Please sign in to comment.