-
Notifications
You must be signed in to change notification settings - Fork 10
37 lines (33 loc) · 819 Bytes
/
ci.yml
File metadata and controls
37 lines (33 loc) · 819 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:
types: [opened, synchronize]
branches:
- main
- preview
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Check for broken links
run: |
set -e
output=$(npx mint broken-links)
echo "$output"
if ! echo "$output" | grep -q '^success '; then
echo "Error: Broken links found! Fix the broken links listed above before merging."
exit 1
fi