chore(deps): update actions/cache action to v2 (#8228)

* chore(deps): update actions/cache action to v2

* use relative and multiple paths for actions/cache

Co-authored-by: Clark Du <clark.duxin@gmail.com>
This commit is contained in:
renovate[bot] 2020-10-29 22:31:28 +00:00 committed by GitHub
parent 44df8cc1b1
commit 3e334ebb91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 69 additions and 33 deletions

View File

@ -36,7 +36,7 @@ jobs:
- name: cache node_modules
id: node_modules_cache_id
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: node_modules
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
@ -45,9 +45,12 @@ jobs:
run: yarn --check-files --frozen-lockfile --non-interactive
- name: cache workspace
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ${{ github.workspace }}
path: |
node_modules
packages/*/node_modules
packages/*/dist
key: ${{ matrix.os }}-node-v${{ matrix.node }}-nuxt-${{ github.sha }}
lint:
@ -67,9 +70,12 @@ jobs:
uses: actions/checkout@master
- name: restore workspace cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ${{ github.workspace }}
path: |
node_modules
packages/*/node_modules
packages/*/dist
key: ${{ matrix.os }}-node-v${{ matrix.node }}-nuxt-${{ github.sha }}
- name: lint
@ -96,9 +102,12 @@ jobs:
uses: actions/checkout@master
- name: restore workspace cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ${{ github.workspace }}
path: |
node_modules
packages/*/node_modules
packages/*/dist
key: ${{ matrix.os }}-node-v${{ matrix.node }}-nuxt-${{ github.sha }}
- name: audit
@ -123,9 +132,12 @@ jobs:
uses: actions/checkout@master
- name: restore workspace cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ${{ github.workspace }}
path: |
node_modules
packages/*/node_modules
packages/*/dist
key: ${{ matrix.os }}-node-v${{ matrix.node }}-nuxt-${{ github.sha }}
- name: test unit
@ -160,16 +172,19 @@ jobs:
uses: actions/checkout@master
- name: restore workspace cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ${{ github.workspace }}
path: |
node_modules
packages/*/node_modules
packages/*/dist
key: ${{ matrix.os }}-node-v${{ matrix.node }}-nuxt-${{ github.sha }}
- name: build
run: yarn test:fixtures -i
- name: cache fixtures
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: test/fixtures
key: ${{ matrix.os }}-node-v${{ matrix.node }}-fixtures-${{ github.sha }}
@ -192,13 +207,16 @@ jobs:
uses: actions/checkout@master
- name: restore workspace cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ${{ github.workspace }}
path: |
node_modules
packages/*/node_modules
packages/*/dist
key: ${{ matrix.os }}-node-v${{ matrix.node }}-nuxt-${{ github.sha }}
- name: restore fixtures
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: test/fixtures
key: ${{ matrix.os }}-node-v${{ matrix.node }}-fixtures-${{ github.sha }}
@ -225,13 +243,16 @@ jobs:
uses: actions/checkout@master
- name: restore workspace cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ${{ github.workspace }}
path: |
node_modules
packages/*/node_modules
packages/*/dist
key: ${{ matrix.os }}-node-v${{ matrix.node }}-nuxt-${{ github.sha }}
- name: restore fixtures
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: test/fixtures
key: ${{ matrix.os }}-node-v${{ matrix.node }}-fixtures-${{ github.sha }}
@ -258,13 +279,16 @@ jobs:
uses: actions/checkout@master
- name: restore workspace cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ${{ github.workspace }}
path: |
node_modules
packages/*/node_modules
packages/*/dist
key: ${{ matrix.os }}-node-v${{ matrix.node }}-nuxt-${{ github.sha }}
- name: restore fixtures
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: test/fixtures
key: ${{ matrix.os }}-node-v${{ matrix.node }}-fixtures-${{ github.sha }}
@ -283,9 +307,12 @@ jobs:
steps:
- name: restore workspace cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ${{ github.workspace }}
path: |
node_modules
packages/*/node_modules
packages/*/dist
key: ${{ matrix.os }}-node-v${{ matrix.node }}-nuxt-${{ github.sha }}
- uses: actions/setup-node@v1

View File

@ -30,7 +30,7 @@ jobs:
- name: cache node_modules
id: node_modules_cache_id
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: node_modules
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
@ -39,9 +39,12 @@ jobs:
run: yarn --check-files --frozen-lockfile --non-interactive
- name: cache workspace
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ${{ github.workspace }}
path: |
node_modules
packages/*/node_modules
packages/*/dist
key: ${{ matrix.os }}-node-v${{ matrix.node }}-nuxt-${{ github.sha }}
@ -68,7 +71,7 @@ jobs:
# - name: restore workspace cache
# uses: actions/cache@v1
# with:
# path: ${{ github.workspace }}
# path: ./**/node_modules
# key: ${{ matrix.os }}-node-v${{ matrix.node }}-nuxt-${{ github.sha }}
# - name: test unit
@ -101,16 +104,19 @@ jobs:
uses: actions/checkout@master
- name: restore workspace cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ${{ github.workspace }}
path: |
node_modules
packages/*/node_modules
packages/*/dist
key: ${{ matrix.os }}-node-v${{ matrix.node }}-nuxt-${{ github.sha }}
- name: build
run: yarn test:fixtures -i
- name: cache fixtures
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: test/fixtures
key: ${{ matrix.os }}-node-v${{ matrix.node }}-fixtures-${{ github.sha }}
@ -136,13 +142,16 @@ jobs:
uses: actions/checkout@master
- name: restore workspace cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ${{ github.workspace }}
path: |
node_modules
packages/*/node_modules
packages/*/dist
key: ${{ matrix.os }}-node-v${{ matrix.node }}-nuxt-${{ github.sha }}
- name: restore fixtures
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: test/fixtures
key: ${{ matrix.os }}-node-v${{ matrix.node }}-fixtures-${{ github.sha }}