chore(docs): check formatting of docs in ci and do initial formatting #1436
Workflow file for this run
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 Build Check | |
on: | |
pull_request: | |
paths: | |
- "docs/**" | |
- .github/workflows/docs-build-check.yml | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: | |
group: ci-${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }}-docs-build | |
cancel-in-progress: true | |
jobs: | |
check-docs-build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ./docs/.nvmrc | |
- name: Copy Kubernetes schema to docs | |
run: npm run copy-schema | |
working-directory: ./docs | |
- name: Install Dependencies | |
run: npm install | |
working-directory: ./docs | |
- name: Check Build | |
run: npm run build | |
working-directory: ./docs | |
- name: Check Format | |
run: npm run check-format | |
working-directory: ./docs |