ci: split doc-checks into eslint and prettier

Prerequisite of moving prettier to project root.

PR: #568
This commit is contained in:
innovaker 2021-01-02 11:45:53 +00:00
parent ad1178d7dc
commit 056158ce07
2 changed files with 26 additions and 13 deletions

23
.github/workflows/eslint.yml vendored Normal file
View 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

View file

@ -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: