Add cache action

This commit is contained in:
Marc Rousavy 2021-02-23 14:43:23 +01:00
parent da514bb99b
commit e8aa9d81c2

View File

@ -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/)