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:
|
2022-10-22 15:51:29 +11:00
|
|
|
- uses: actions/checkout@v3
|
2020-11-04 05:46:07 +11:00
|
|
|
- uses: bahmutov/npm-install@v1
|
|
|
|
with:
|
|
|
|
working-directory: docs
|
|
|
|
- name: ESLint
|
|
|
|
run: npm run lint
|
|
|
|
working-directory: docs
|
|
|
|
prettier:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-10-22 15:51:29 +11:00
|
|
|
- uses: actions/checkout@v3
|
2020-11-04 05:46:07 +11:00
|
|
|
- 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
|
2021-03-29 12:22:05 +11:00
|
|
|
typecheck:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-10-22 15:51:29 +11:00
|
|
|
- uses: actions/checkout@v3
|
2021-03-29 12:22:05 +11:00
|
|
|
- uses: bahmutov/npm-install@v1
|
|
|
|
with:
|
|
|
|
working-directory: docs
|
|
|
|
- name: Build
|
|
|
|
run: npm run build
|
|
|
|
working-directory: docs
|
|
|
|
- name: TypeScript check
|
|
|
|
run: npm run typecheck
|
|
|
|
working-directory: docs
|