Skip to content

Commit

Permalink
test: github action cache node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
hq001 committed Dec 19, 2020
1 parent d2acaa3 commit 1b11363
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ jobs:
- name: Cache node modules
uses: actions/cache@v2
with:
path: ~/.yarn
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

- name: install
Expand All @@ -36,6 +38,14 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Load node_modules
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

- uses: cypress-io/github-action@v2
with:
config-file: cypress.json
Expand All @@ -58,7 +68,9 @@ jobs:
- name: Load node_modules
uses: actions/cache@v2
with:
path: ~/.yarn
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

- name: install dependencies
Expand Down

0 comments on commit 1b11363

Please sign in to comment.