Skip to content

Commit 32adc98

Browse files
Restore CI workflow: build, test, offline demo, flaky repair-loop check
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 1f03d0c commit 32adc98

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-test-forge:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
cache: npm
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Build
26+
run: npm run build
27+
28+
- name: Test
29+
run: npm test
30+
31+
- name: Run default forge demo (offline)
32+
run: npm run forge
33+
34+
- name: Verify demo outputs
35+
run: |
36+
test -f runs/latest/reports/report.html
37+
test -f runs/latest/reports/summary.json
38+
ls dist/calendar-scheduling-skill-*.zip
39+
ls runs/latest/dist/calendar-scheduling-skill-*.zip
40+
node -e "const s=require('./runs/latest/reports/summary.json'); if(!s.passed){console.error('demo run did not pass the quality gate'); process.exit(1);}"
41+
42+
- name: Run flaky demo (repair loop)
43+
run: npm run forge:flaky
44+
45+
- name: Verify flaky demo exercised the repair loop
46+
run: |
47+
node -e "const s=require('./runs/latest-flaky/reports/summary.json'); if(s.repairAttempts<1){console.error('flaky demo did not perform a repair'); process.exit(1);}"
48+
49+
- name: Upload run reports
50+
if: always()
51+
uses: actions/upload-artifact@v4
52+
with:
53+
name: forge-reports
54+
path: |
55+
runs/latest/reports/
56+
runs/latest-flaky/reports/
57+
if-no-files-found: ignore

0 commit comments

Comments
 (0)