feat(sops): generate randomized SOPs and validation tests #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PROSE SOP Compliance | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: prose-compliance-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| compliance: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build provenant | |
| working-directory: packages/provenant | |
| run: npx tsc | |
| - name: Restore Provenant graph database | |
| uses: actions/cache@v4 | |
| with: | |
| path: .provenant/graph.db | |
| key: provenant-db-${{ github.run_number }} | |
| restore-keys: provenant-db- | |
| - name: Run PROSE integration tests and log to Provenant | |
| run: npx tsx scripts/log-prose-results.ts .provenant/graph.db | |
| - name: Print SOP compliance report | |
| run: npx tsx packages/provenant/src/cli/index.ts compliance --db .provenant/graph.db | |
| - name: Upload graph database | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: provenant-graph-prose-${{ github.run_number }} | |
| path: .provenant/graph.db | |
| retention-days: 30 |