Update validate-js.yml
This commit is contained in:
parent
371b602d3a
commit
915492f108
36
.github/workflows/validate-js.yml
vendored
36
.github/workflows/validate-js.yml
vendored
@ -19,8 +19,8 @@ on:
|
|||||||
- 'package.json'
|
- 'package.json'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate:
|
setup:
|
||||||
name: Validate JS (tsc, eslint, prettier)
|
name: Setup node_modules
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -34,7 +34,39 @@ jobs:
|
|||||||
run: yarn
|
run: yarn
|
||||||
- name: Install modules (example/)
|
- name: Install modules (example/)
|
||||||
run: yarn example
|
run: yarn example
|
||||||
|
tsc:
|
||||||
|
name: Run TypeScript
|
||||||
|
needs: node_modules
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
# - uses: actions/checkout@v2
|
||||||
|
# - uses: actions/cache@v2
|
||||||
|
# with:
|
||||||
|
# path: node_modules
|
||||||
|
# key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
# restore-keys: |
|
||||||
|
# ${{ runner.os }}-node-
|
||||||
|
# - name: Install modules
|
||||||
|
# run: yarn
|
||||||
|
# - name: Install modules (example/)
|
||||||
|
# run: yarn example
|
||||||
- name: Run TypeScript
|
- name: Run TypeScript
|
||||||
run: yarn typescript
|
run: yarn typescript
|
||||||
|
lint:
|
||||||
|
name: Run ESLint and Prettier
|
||||||
|
needs: node_modules
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
# - uses: actions/checkout@v2
|
||||||
|
# - uses: actions/cache@v2
|
||||||
|
# with:
|
||||||
|
# path: node_modules
|
||||||
|
# key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
# restore-keys: |
|
||||||
|
# ${{ runner.os }}-node-
|
||||||
|
# - name: Install modules
|
||||||
|
# run: yarn
|
||||||
|
# - name: Install modules (example/)
|
||||||
|
# run: yarn example
|
||||||
- name: Run ESLint
|
- name: Run ESLint
|
||||||
run: yarn lint-ci
|
run: yarn lint-ci
|
||||||
|
Loading…
Reference in New Issue
Block a user