mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 03:00:48 +00:00
fix: skip OpenAPI generation in CI to speed up setup step
This commit is contained in:
parent
6ab2909ac5
commit
05459a2a2f
3 changed files with 4 additions and 2 deletions
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
|
|
@ -27,6 +27,8 @@ env:
|
||||||
CARGO_INCREMENTAL: 0
|
CARGO_INCREMENTAL: 0
|
||||||
# Skip inspector frontend for CI (not needed for type checking)
|
# Skip inspector frontend for CI (not needed for type checking)
|
||||||
SANDBOX_AGENT_SKIP_INSPECTOR: 1
|
SANDBOX_AGENT_SKIP_INSPECTOR: 1
|
||||||
|
# Skip OpenAPI generation in CI (use pre-committed docs/openapi.json)
|
||||||
|
SKIP_OPENAPI_GEN: 1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
setup:
|
setup:
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
"generate:openapi": "cargo check -p sandbox-agent-openapi-gen && cargo run -p sandbox-agent-openapi-gen -- --out ../../docs/openapi.json",
|
"generate:openapi": "cargo check -p sandbox-agent-openapi-gen && cargo run -p sandbox-agent-openapi-gen -- --out ../../docs/openapi.json",
|
||||||
"generate:types": "openapi-typescript ../../docs/openapi.json -o src/generated/openapi.ts",
|
"generate:types": "openapi-typescript ../../docs/openapi.json -o src/generated/openapi.ts",
|
||||||
"generate": "pnpm run generate:openapi && pnpm run generate:types",
|
"generate": "pnpm run generate:openapi && pnpm run generate:types",
|
||||||
"build": "pnpm run generate && tsup",
|
"build": "if [ -z \"$SKIP_OPENAPI_GEN\" ]; then pnpm run generate:openapi; fi && pnpm run generate:types && tsup",
|
||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
"test": "vitest run",
|
"test": "vitest run",
|
||||||
"test:watch": "vitest"
|
"test:watch": "vitest"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://turbo.build/schema.json",
|
"$schema": "https://turbo.build/schema.json",
|
||||||
"globalPassThroughEnv": ["SANDBOX_AGENT_SKIP_INSPECTOR"],
|
"globalPassThroughEnv": ["SANDBOX_AGENT_SKIP_INSPECTOR", "SKIP_OPENAPI_GEN"],
|
||||||
"tasks": {
|
"tasks": {
|
||||||
"build": {
|
"build": {
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue