-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (36 loc) · 974 Bytes
/
Copy pathdocs-test.yml
File metadata and controls
36 lines (36 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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@v6
- name: Set up Node.js
uses: actions/setup-node@v6
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