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:
|
||||
push:
|
||||
paths:
|
||||
- ".github/workflows/doc-checks.yml"
|
||||
- ".github/workflows/prettier.yml"
|
||||
- "docs/**"
|
||||
pull_request:
|
||||
paths:
|
||||
- ".github/workflows/doc-checks.yml"
|
||||
- ".github/workflows/prettier.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
|
||||
prettier:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
Loading…
Add table
Reference in a new issue