-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (32 loc) · 860 Bytes
/
ci.yml
File metadata and controls
37 lines (32 loc) · 860 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
37
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate docs.json is valid JSON
run: jq . docs.json > /dev/null
- name: Disallow staging URLs in docs
run: |
if rg -n "staging\\." .; then
echo "Found staging URLs. Use production URLs or document/allow staging explicitly."
exit 1
fi
- name: Link check
uses: lycheeverse/lychee-action@v2
with:
args: >-
--verbose
--no-progress
--accept 200,201,202,203,204,206,301,302,303,307,308,429
--max-concurrency 8
--timeout 20
--root-dir .
--exclude 'file://'
README.md **/*.mdx