|
| 1 | +name: Agent Task Contracts |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + paths: |
| 6 | + - ".github/scripts/run-agent-task/**" |
| 7 | + - ".github/workflows/agent-task-contracts.yml" |
| 8 | + - ".github/workflows/run-agent-task.yml" |
| 9 | + - "contracts/agent-task-workflow-request.fixture.json" |
| 10 | + - "contracts/run-agent-task-reusable-workflow-interface.v1.json" |
| 11 | + - "docs/agent-task-reusable-workflow.md" |
| 12 | + - "package-lock.json" |
| 13 | + - "package.json" |
| 14 | + - "tests/agent-task-*.test.ts" |
| 15 | + - "tests/redaction.test.ts" |
| 16 | + - "tests/production-boundary-enforcement.test.ts" |
| 17 | + - "tests/runtime-tool-policy.test.ts" |
| 18 | + push: |
| 19 | + paths: |
| 20 | + - ".github/scripts/run-agent-task/**" |
| 21 | + - ".github/workflows/agent-task-contracts.yml" |
| 22 | + - ".github/workflows/run-agent-task.yml" |
| 23 | + - "contracts/agent-task-workflow-request.fixture.json" |
| 24 | + - "contracts/run-agent-task-reusable-workflow-interface.v1.json" |
| 25 | + - "docs/agent-task-reusable-workflow.md" |
| 26 | + - "package-lock.json" |
| 27 | + - "package.json" |
| 28 | + - "tests/agent-task-*.test.ts" |
| 29 | + - "tests/redaction.test.ts" |
| 30 | + - "tests/production-boundary-enforcement.test.ts" |
| 31 | + - "tests/runtime-tool-policy.test.ts" |
| 32 | + |
| 33 | +jobs: |
| 34 | + contracts: |
| 35 | + runs-on: ubuntu-latest |
| 36 | + steps: |
| 37 | + - uses: actions/checkout@v4 |
| 38 | + - uses: actions/setup-node@v4 |
| 39 | + with: |
| 40 | + node-version: 22 |
| 41 | + cache: npm |
| 42 | + - run: npm ci |
| 43 | + - run: npm run build |
| 44 | + - run: npm run test:agent-task-contracts |
| 45 | + - run: npm run test:redaction |
| 46 | + - run: npm run test:production-boundary-enforcement |
| 47 | + - run: npm run test:runtime-tool-policy |
| 48 | + |
| 49 | + workflow-lint: |
| 50 | + runs-on: ubuntu-latest |
| 51 | + steps: |
| 52 | + - uses: actions/checkout@v4 |
| 53 | + - uses: docker://rhysd/actionlint:1.7.7 |
| 54 | + with: |
| 55 | + args: .github/workflows/run-agent-task.yml |
0 commit comments