-
Notifications
You must be signed in to change notification settings - Fork 43
36 lines (34 loc) · 881 Bytes
/
ci-links.yml
File metadata and controls
36 lines (34 loc) · 881 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
# NOTE: This name appears in GitHub's Checks API and in workflow's status badge.
name: ci-links
on:
schedule:
# Check for broken links every day at 7:00 AM.
- cron: '0 7 * * *'
jobs:
links:
# NOTE: This name appears in GitHub's Checks API.
name: links
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
submodules: true
- name: Set up Node.js
uses: actions/setup-node@v5
with:
node-version: '20.x'
cache: yarn
- name: Build
env:
# Docs will be served on localhost. Rewrite the host URL.
URL: http://localhost:3000
run: |
yarn install --frozen-lockfile
yarn build
- name: Serve
run: |
yarn serve &
- name: Check links
run: |
yarn blc