[ticket-076] Add standalone source DSL APIs #730
Workflow file for this run
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: ci | |
| on: | |
| push: | |
| pull_request: | |
| pull_request_review: | |
| types: [submitted, dismissed] | |
| workflow_dispatch: | |
| schedule: | |
| # Live provider checks only. The offline verify jobs never gate on this | |
| # trigger, so CI can never start depending on provider uptime. | |
| - cron: '17 4 * * 1' | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| governance: | |
| if: >- | |
| (github.event_name == 'push' && | |
| github.ref_name == github.event.repository.default_branch) || | |
| github.event_name == 'workflow_dispatch' || | |
| (github.event_name == 'pull_request_review' && | |
| (github.event.action == 'submitted' || | |
| (github.event.action == 'dismissed' && | |
| github.event.review.commit_id == github.event.pull_request.head.sha))) | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| uses: wellmanifest/new-project/.github/workflows/governance.yml@a22eb47ca0e7c06ac927d1c0d843eabb798bfadd | |
| with: | |
| standard-ref: a22eb47ca0e7c06ac927d1c0d843eabb798bfadd | |
| trusted-reviewers: ${{ vars.TRUSTED_REVIEWERS }} | |
| trusted-validator-apps: ${{ vars.TRUSTED_VALIDATOR_APPS }} | |
| verify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - run: npm install --omit=optional | |
| - run: make verify | |
| - run: make smoke | |
| - run: make docker-smoke | |
| java-adapter: | |
| name: Java adapter (JDK 17 required) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| - run: npm ci --omit=optional | |
| - run: npm run build | |
| - name: Run required Java fixture | |
| env: | |
| T2C_REQUIRE_JAVA_TEST: '1' | |
| run: node --test --test-name-pattern='^Java adapter records' dist/test/ast-languages.test.js | |
| live-openrouter: | |
| name: Live OpenRouter contract (opt-in) | |
| if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' | |
| runs-on: ubuntu-latest | |
| env: | |
| OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} | |
| T2C_REQUIRE_LIVE_CHECK: '1' | |
| T2C_LIVE_MAX_STAGE_LATENCY_MS: '300000' | |
| T2C_LIVE_MAX_TOTAL_LATENCY_MS: '900000' | |
| T2C_LIVE_MAX_COST_USD: '0.5' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci --omit=optional | |
| # A trend is only readable if it survives the run that produced it. The | |
| # unique key always writes a fresh entry; the prefix restores the newest | |
| # previous one, so each scheduled run appends rather than starts over. | |
| - name: Restore recorded live-check history | |
| uses: actions/cache@v4 | |
| with: | |
| path: .intent-live/contract-check-history.json | |
| key: live-contract-history-${{ github.run_id }} | |
| restore-keys: live-contract-history- | |
| - name: Check six-stage structured contracts and budgets | |
| if: env.OPENROUTER_API_KEY != '' | |
| run: npm run live:check | |
| - name: Explain disabled live check | |
| if: env.OPENROUTER_API_KEY == '' | |
| run: echo 'OPENROUTER_API_KEY secret is not configured; live check is opt-in.' | |
| - uses: actions/upload-artifact@v4 | |
| if: always() && env.OPENROUTER_API_KEY != '' | |
| with: | |
| name: openrouter-contract-audit | |
| path: | | |
| .intent-live/contract-check.json | |
| .intent-live/contract-check-history.json |