-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (46 loc) · 1.53 KB
/
Copy pathci.yml
File metadata and controls
57 lines (46 loc) · 1.53 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
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
build-test-forge:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm test
- name: Run default forge demo (offline)
run: npm run forge
- name: Verify demo outputs
run: |
test -f runs/latest/reports/report.html
test -f runs/latest/reports/summary.json
ls dist/calendar-scheduling-skill-*.zip
ls runs/latest/dist/calendar-scheduling-skill-*.zip
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);}"
- name: Run flaky demo (repair loop)
run: npm run forge:flaky
- name: Verify flaky demo exercised the repair loop
run: |
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);}"
- name: Upload run reports
if: always()
uses: actions/upload-artifact@v4
with:
name: forge-reports
path: |
runs/latest/reports/
runs/latest-flaky/reports/
if-no-files-found: ignore