Skip to content

Commit a820940

Browse files
author
StackMemory Bot (CLI)
committed
ci: add PROSE SOP compliance workflow
Run the PROSE platform-overview integration tests on every push/PR, log the SOP-backed Expectation results to Provenant, and print a compliance report. - Trigger: push to main, PRs, and workflow_dispatch - Restores Provenant DB from cache - Runs scripts/log-prose-results.ts - Prints provenant compliance report - Uploads updated graph DB as artifact
1 parent dc20df8 commit a820940

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: PROSE SOP Compliance
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: prose-compliance-${{ github.ref }}
12+
cancel-in-progress: false
13+
14+
jobs:
15+
compliance:
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 30
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: '22'
25+
cache: 'npm'
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Build provenant
31+
working-directory: packages/provenant
32+
run: npx tsc
33+
34+
- name: Restore Provenant graph database
35+
uses: actions/cache@v4
36+
with:
37+
path: .provenant/graph.db
38+
key: provenant-db-${{ github.run_number }}
39+
restore-keys: provenant-db-
40+
41+
- name: Run PROSE integration tests and log to Provenant
42+
run: npx tsx scripts/log-prose-results.ts .provenant/graph.db
43+
44+
- name: Print SOP compliance report
45+
run: npx tsx packages/provenant/src/cli/index.ts compliance --db .provenant/graph.db
46+
47+
- name: Upload graph database
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: provenant-graph-prose-${{ github.run_number }}
51+
path: .provenant/graph.db
52+
retention-days: 30

0 commit comments

Comments
 (0)