-
Notifications
You must be signed in to change notification settings - Fork 5
35 lines (31 loc) 路 868 Bytes
/
Copy pathdoc-test.yml
File metadata and controls
35 lines (31 loc) 路 868 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
name: Test documentation
on:
# If specified, the workflow will be triggered automatically once you push to the `main` branch.
# Replace `main` with your branch鈥檚 name
pull_request:
branches:
- dev
# Specify to run a workflow manually from the Actions tab on GitHub
workflow_dispatch:
jobs:
test:
name: Test Docusaurus build
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: './docs/package-lock.json'
- name: Install dependencies
run: npm ci
- name: Build Docusaurus site
run: npm run build