-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1.4 KB
/
Copy pathci.yml
File metadata and controls
50 lines (46 loc) · 1.4 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
name: CI
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
house-rules:
name: House rules
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: "22"
# The same command a contributor runs locally with `npm test`. One
# definition of clean, checked in one place.
- run: node scripts/check-house-rules.mjs
build:
name: Build site
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
- uses: actions/setup-node@v5
with:
node-version: "22"
- run: npm ci
- run: bundle exec jekyll build
- run: node scripts/build-agent-files.mjs
- run: node scripts/check-links.mjs
# A PR that breaks the markdown twin or llms-full.txt should fail here
# rather than ship a site whose agent-facing half is missing.
- name: Check agent-facing files exist
run: |
test -s _site/index.md
test -s _site/llms.txt
test -s _site/llms-full.txt
test -s _site/build/rag.md
test ! -e _site/for-agents.html
grep -q 'rel="alternate" type="text/markdown"' _site/index.html
grep -q 'rel="alternate" type="text/markdown"' _site/build/rag.html