-
Notifications
You must be signed in to change notification settings - Fork 85
75 lines (66 loc) · 2.21 KB
/
check-links-scheduled.yml
File metadata and controls
75 lines (66 loc) · 2.21 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Scheduled Broken Links Checker
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}
env:
VITE_PORTAL_API_URL: ${{ vars.VITE_PORTAL_API_URL }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
with:
egress-policy: audit
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
with:
submodules: 'recursive'
# Configure Ruby to build Jekyll site
- name: Set up Ruby
uses: ruby/setup-ruby@84684c07c1965536eb4802c8daf1a77968df0cb1 # v1
with:
ruby-version: .ruby-version
- name: Ruby gem cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: ${{ github.workspace }}/vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Bundle Setup
run: bundle config path ${{ github.workspace }}/vendor/bundle
- name: Bundle Install
run: bundle install --jobs 4 --retry 3
# Configure Node to build assets
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6
with:
node-version: "22"
- name: Cache node modules
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: npm install
run: npm ci
# Build the Docs
- name: Build Docs
run: |
exe/build
- name: Run site
run: |
npx netlify dev --context test & npx wait-on http://localhost:8888
- name: Run link checker
run: |
cd tools/broken-link-checker
npm ci
node full.js --host http://localhost:8888
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}