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/checkout@v2
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: node_modules
|
path: |
|
||||||
|
node_modules
|
||||||
|
example/node_modules
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-node-
|
${{ runner.os }}-node-
|
||||||
@ -39,13 +41,15 @@ jobs:
|
|||||||
needs: setup
|
needs: setup
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# - uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
# - uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
# with:
|
with:
|
||||||
# path: node_modules
|
path: |
|
||||||
# key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
|
node_modules
|
||||||
# restore-keys: |
|
example/node_modules
|
||||||
# ${{ runner.os }}-node-
|
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-node-
|
||||||
# - name: Install modules
|
# - name: Install modules
|
||||||
# run: yarn
|
# run: yarn
|
||||||
# - name: Install modules (example/)
|
# - name: Install modules (example/)
|
||||||
@ -57,13 +61,15 @@ jobs:
|
|||||||
needs: setup
|
needs: setup
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# - uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
# - uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
# with:
|
with:
|
||||||
# path: node_modules
|
path: |
|
||||||
# key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
|
node_modules
|
||||||
# restore-keys: |
|
example/node_modules
|
||||||
# ${{ runner.os }}-node-
|
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-node-
|
||||||
# - name: Install modules
|
# - name: Install modules
|
||||||
# run: yarn
|
# run: yarn
|
||||||
# - name: Install modules (example/)
|
# - name: Install modules (example/)
|
||||||
|
Loading…
Reference in New Issue
Block a user