Merge Validate JS into single job
This commit is contained in:
parent
4277907af9
commit
c1a679bf2a
48
.github/workflows/validate-js.yml
vendored
48
.github/workflows/validate-js.yml
vendored
@ -19,30 +19,8 @@ on:
|
|||||||
- 'package.json'
|
- 'package.json'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
setup:
|
vibe_check:
|
||||||
name: Setup node_modules
|
name: Validate JS (tsc, eslint, prettier)
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Get yarn cache directory path
|
|
||||||
id: yarn-cache-dir-path
|
|
||||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
||||||
- uses: actions/cache@v2
|
|
||||||
id: yarn-cache
|
|
||||||
with:
|
|
||||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
||||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-yarn-
|
|
||||||
|
|
||||||
- name: Install modules
|
|
||||||
run: yarn
|
|
||||||
- name: Install modules (example/)
|
|
||||||
run: yarn example
|
|
||||||
tsc:
|
|
||||||
name: Run TypeScript
|
|
||||||
needs: setup
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -65,28 +43,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Run TypeScript
|
- name: Run TypeScript
|
||||||
run: yarn typescript
|
run: yarn typescript
|
||||||
lint:
|
|
||||||
name: Run ESLint and Prettier
|
|
||||||
needs: setup
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Get yarn cache directory path
|
|
||||||
id: yarn-cache-dir-path
|
|
||||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
||||||
- uses: actions/cache@v2
|
|
||||||
id: yarn-cache
|
|
||||||
with:
|
|
||||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
||||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-yarn-
|
|
||||||
|
|
||||||
- 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