Skip to content

Commit f3d9e2c

Browse files
committed
Run agent-task workflow contracts in CI
1 parent e3a401a commit f3d9e2c

2 files changed

Lines changed: 56 additions & 1 deletion

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"generate:fanout-aggregation-contract": "tsx scripts/generate-fanout-aggregation-contract-fixture.ts",
8686
"smoke": "tsx scripts/run-smoke.ts",
8787
"test:redaction": "tsx tests/redaction.test.ts",
88-
"test:agent-task-contracts": "tsx tests/agent-task-contracts.test.ts && npm run test:agent-task-workflow-interface",
88+
"test:agent-task-contracts": "tsx tests/agent-task-contracts.test.ts && npm run test:agent-task-workflow-interface && tsx tests/agent-task-reusable-workflow.test.ts",
8989
"test:agent-task-workflow-interface": "tsx tests/run-agent-task-reusable-workflow-interface.test.ts",
9090
"test:agent-task-runtime-package-staging": "tsx tests/agent-task-runtime-package-staging.test.ts",
9191
"test:external-native-package-materialization": "tsx tests/external-native-package-materialization.test.ts",

0 commit comments

Comments
 (0)