ci: split doc-checks into eslint and prettier
Prerequisite of moving prettier to project root. PR: #568
This commit is contained in:
parent
ad1178d7dc
commit
056158ce07
2 changed files with 26 additions and 13 deletions
23
.github/workflows/eslint.yml
vendored
Normal file
23
.github/workflows/eslint.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
name: ESLint
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- ".github/workflows/eslint.yml"
|
||||||
|
- "docs/**"
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- ".github/workflows/eslint.yml"
|
||||||
|
- "docs/**"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: bahmutov/npm-install@v1
|
||||||
|
with:
|
||||||
|
working-directory: docs
|
||||||
|
- name: ESLint
|
||||||
|
run: npm run lint
|
||||||
|
working-directory: docs
|
|
@ -1,26 +1,16 @@
|
||||||
name: Docs Checks
|
name: Prettier
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- ".github/workflows/doc-checks.yml"
|
- ".github/workflows/prettier.yml"
|
||||||
- "docs/**"
|
- "docs/**"
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- ".github/workflows/doc-checks.yml"
|
- ".github/workflows/prettier.yml"
|
||||||
- "docs/**"
|
- "docs/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: bahmutov/npm-install@v1
|
|
||||||
with:
|
|
||||||
working-directory: docs
|
|
||||||
- name: ESLint
|
|
||||||
run: npm run lint
|
|
||||||
working-directory: docs
|
|
||||||
prettier:
|
prettier:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
Loading…
Add table
Reference in a new issue