Try implementing node_modules cache in check workflow

This commit is contained in:
Marshall Polaris 2022-05-21 13:08:16 -07:00
parent 190f013a15
commit 1be7685741

View File

@ -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 .