Try implementing node_modules cache in check workflow
This commit is contained in:
parent
190f013a15
commit
1be7685741
7
.github/workflows/check.yml
vendored
7
.github/workflows/check.yml
vendored
|
@ -25,7 +25,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: latest
|
node-version: latest
|
||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
- name: Install dependencies
|
- name: Restore cached node_modules
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: node_modules
|
||||||
|
key: ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
- name: Install missing dependencies
|
||||||
run: yarn install --prefer-offline --frozen-lockfile
|
run: yarn install --prefer-offline --frozen-lockfile
|
||||||
- name: Run Prettier
|
- name: Run Prettier
|
||||||
run: npx prettier --check .
|
run: npx prettier --check .
|
||||||
|
|
Loading…
Reference in New Issue
Block a user