-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (59 loc) · 2.03 KB
/
Copy pathci.yml
File metadata and controls
64 lines (59 loc) · 2.03 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
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: agentify/package-lock.json
- name: Install
working-directory: agentify
run: npm ci
- name: Test (validators, goldens, renderers, CLI)
working-directory: agentify
run: npm test
eval:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Reasoning eval (case shape + seeded gallery expectations)
run: |
node eval/check.mjs --validate
node eval/check.mjs --seeded
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Em dash lint (project style rule, no em dashes anywhere)
run: |
emdash="$(printf '\342\200\224')"
# -I ignores binary files (e.g. PNGs) so their bytes cannot falsely match.
if grep -rIn "$emdash" . --exclude-dir=.git --exclude-dir=node_modules; then
echo "Em dashes found. Replace with commas, colons, parentheses, or separate sentences."
exit 1
fi
echo "No em dashes found."
links:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v4
- name: Knowledge base link check
uses: lycheeverse/lychee-action@v2
with:
# 403/429 are anti-bot responses and 415 is a PDF host rejecting the
# checker's request; all three mean the resource exists, so accept them.
# Exclude our own Pages site: it deploys in a separate workflow after
# this one, so a newly added page 404s here until that finishes.
args: --no-progress --accept 200,203,206,301,302,403,415,429 --exclude "avnath13\.github\.io" "agentify/knowledge/**/*.md" "README.md"
fail: true