-
Notifications
You must be signed in to change notification settings - Fork 419
49 lines (42 loc) · 1.16 KB
/
pr-builder.yml
File metadata and controls
49 lines (42 loc) · 1.16 KB
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
44
45
46
47
48
49
name: PR Builder - Asgardeo Docs
on:
pull_request:
paths:
- 'en/asgardeo/**'
- 'en/includes/**'
# Avoid running multiple builds for the same PR.
concurrency:
group: pr-builder-${{ github.ref }}
cancel-in-progress: true
jobs:
broken-link-checker:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
cd en/asgardeo
pip install -r requirements.txt
- name: Build
run: |
cd en/asgardeo
mkdocs build --strict
- name: Broken link checker
run: |
cd en/asgardeo
nohup mkdocs serve > mkdocs.log 2>&1 &
# Wait for server to start
while ! nc -z localhost 8000; do
sleep 1
done
pip3 install linkchecker
linkchecker -F html http://127.0.0.1:8000 --threads=100 --no-warnings