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