Skip to content

Commit f31c6d4

Browse files
committed
chore: check for broken links during CI
1 parent 9c3ab04 commit f31c6d4

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
on: pull_request
3+
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.ref }}
6+
cancel-in-progress: true
7+
8+
jobs:
9+
ci:
10+
name: Test
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 15
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 2
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: '22'
23+
24+
- name: Check for broken links
25+
run: |
26+
set -e
27+
output=$(npx mint broken-links)
28+
echo "$output"
29+
if ! echo "$output" | grep -q '^success '; then
30+
echo "Error: Broken links found! Fix the broken links listed above before merging."
31+
exit 1
32+
fi

0 commit comments

Comments
 (0)