mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
Fallback to restore previous node_modules cache in github action
This commit is contained in:
27
.github/workflows/PR-CI.yml
vendored
27
.github/workflows/PR-CI.yml
vendored
@@ -22,17 +22,30 @@ jobs:
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12.x
|
||||
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: '**/node_modules'
|
||||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
||||
key: nodeModules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
nodeModules-
|
||||
|
||||
- name: Install packages
|
||||
run: yarn --frozen-lockfile
|
||||
- name: Linting
|
||||
run: yarn lint
|
||||
- name: Typechecking
|
||||
run: yarn typecheck
|
||||
- name: Testing
|
||||
run: yarn test
|
||||
env:
|
||||
CI: true
|
||||
|
||||
- name: Linting
|
||||
run: yarn lint
|
||||
env:
|
||||
CI: true
|
||||
|
||||
- name: Typechecking
|
||||
run: yarn typecheck
|
||||
env:
|
||||
CI: true
|
||||
|
||||
- name: Testing
|
||||
run: yarn test --ci --coverage
|
||||
env:
|
||||
CI: true
|
||||
|
||||
Reference in New Issue
Block a user