ci: lint all the things #250
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docs Lint/Link Checks | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
paths: | |
- docs/** | |
- .github/** | |
defaults: | |
run: | |
working-directory: docs | |
jobs: | |
checks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
cache-dependency-path: 'docs/package-lock.json' | |
- name: npm install | |
run: npm ci --include=dev --ignore-scripts | |
- name: Run docusaurus build to check for broken links etc | |
run: | | |
npm run build |