Add cache action
This commit is contained in:
parent
da514bb99b
commit
e8aa9d81c2
36
.github/workflows/validate-js.yml
vendored
36
.github/workflows/validate-js.yml
vendored
@ -26,7 +26,9 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: node_modules
|
||||
path: |
|
||||
node_modules
|
||||
example/node_modules
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-
|
||||
@ -39,13 +41,15 @@ jobs:
|
||||
needs: setup
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# - uses: actions/cache@v2
|
||||
# with:
|
||||
# path: node_modules
|
||||
# key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
|
||||
# restore-keys: |
|
||||
# ${{ runner.os }}-node-
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
node_modules
|
||||
example/node_modules
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-
|
||||
# - name: Install modules
|
||||
# run: yarn
|
||||
# - name: Install modules (example/)
|
||||
@ -57,13 +61,15 @@ jobs:
|
||||
needs: setup
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# - uses: actions/cache@v2
|
||||
# with:
|
||||
# path: node_modules
|
||||
# key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
|
||||
# restore-keys: |
|
||||
# ${{ runner.os }}-node-
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
node_modules
|
||||
example/node_modules
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-
|
||||
# - name: Install modules
|
||||
# run: yarn
|
||||
# - name: Install modules (example/)
|
||||
|
Loading…
Reference in New Issue
Block a user