-
Notifications
You must be signed in to change notification settings - Fork 32
43 lines (40 loc) · 1.09 KB
/
test-build.yml
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
37
38
39
40
41
42
43
name: Test docs build
on:
pull_request:
branches:
- main
jobs:
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
docs: ${{ steps.filter.outputs.docs }}
steps:
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
docs:
- '.github/workflows/deploy-to-developer-portal-dev.yml'
- '.github/workflows/deploy-to-developer-portal-prod.yml'
- '.github/workflows/test-build.yml'
- 'docusaurus/**'
- 'package-lock.json'
build-docs:
needs: changes
if: ${{ needs.changes.outputs.docs == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build documentation website (Dev Portal)
run: npm run build -w website