2020-11-28 01:57:22 +11:00
|
|
|
name: Docs Checks
|
2020-11-04 05:46:07 +11:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
2020-11-29 06:18:18 +11:00
|
|
|
- ".github/workflows/doc-checks.yml"
|
2020-11-04 05:46:07 +11:00
|
|
|
- "docs/**"
|
|
|
|
pull_request:
|
|
|
|
paths:
|
2020-11-29 06:18:18 +11:00
|
|
|
- ".github/workflows/doc-checks.yml"
|
2020-11-04 05:46:07 +11:00
|
|
|
- "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
|
|
|
|
name: Prettier
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: bahmutov/npm-install@v1
|
|
|
|
with:
|
|
|
|
working-directory: docs
|
2020-11-28 01:57:22 +11:00
|
|
|
- name: Prettier check
|
2020-11-04 05:46:07 +11:00
|
|
|
run: npm run prettier:check
|
|
|
|
working-directory: docs
|