-
Notifications
You must be signed in to change notification settings - Fork 102
47 lines (43 loc) · 1.07 KB
/
link-checker.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
44
45
46
47
name: Sauce Docs Link Checker
on:
pull_request:
push:
paths:
- 'docs/**'
workflow_dispatch:
env:
ALGOLIA_APP_ID: ${{secrets.ALGOLIA_APP_ID}}
ALGOLIA_KEY: ${{secrets.ALGOLIA_KEY}}
SLACK_LINK: ${{secrets.SLACK_LINK}}
GITLAB_TOKEN: ${{secrets.GITLAB_TOKEN}}
defaults:
run:
working-directory: tests/sauce-docs-checker
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18.x
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build and Run Docusaurus Site
working-directory: ./
run: |
npm install && npm run build
# Expose website
cd build/ && python3 -m http.server 8000 &
- name: Install Test Dependencies
run: |
npm install
- name: Set GitHub Action Job URL
run: |
echo $GITHUB_RUN_ID
- name: Start Link Checker Script
run: |
npm start -- $GITHUB_RUN_ID