2022-03-16 13:58:53 +00:00
|
|
|
name: Docs
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
2022-10-17 10:10:05 +00:00
|
|
|
- "docs/**"
|
|
|
|
- ".github/workflows/docs.yml"
|
2022-03-16 13:58:53 +00:00
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
paths:
|
2022-10-17 10:10:05 +00:00
|
|
|
- "docs/**"
|
|
|
|
- ".github/workflows/docs.yml"
|
2022-03-16 13:58:53 +00:00
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint-docs:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
node: [14]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2022-10-17 10:10:05 +00:00
|
|
|
- run: corepack enable
|
2022-03-16 13:58:53 +00:00
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node }}
|
2022-10-17 10:10:05 +00:00
|
|
|
cache: "pnpm"
|
2022-03-16 13:58:53 +00:00
|
|
|
|
|
|
|
- name: Install dependencies
|
2022-10-17 10:10:05 +00:00
|
|
|
run: pnpm install
|
2022-03-16 13:58:53 +00:00
|
|
|
|
|
|
|
- name: Lint (docs)
|
2022-10-17 10:10:05 +00:00
|
|
|
run: pnpm lint:docs
|