diff --git a/.github/workflows/ci-fast.yml b/.github/workflows/ci-fast.yml index 151ad2f69..caa8efdc6 100644 --- a/.github/workflows/ci-fast.yml +++ b/.github/workflows/ci-fast.yml @@ -125,6 +125,9 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile + - name: Build TypeScript dependencies for Rust tests + run: pnpm exec turbo run build --filter=@alienplatform/sdk --filter=@alienplatform/commands + - name: Rust fast tests (non-cloud) env: AXIOM_OTLP_ENDPOINT: https://api.axiom.co/v1/logs diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ecd3a7c0c..80651d146 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1010,6 +1010,11 @@ jobs: - name: Install JavaScript dependencies run: pnpm install --frozen-lockfile + - name: Build packages used by addon smoke test + run: | + pnpm --filter @alienplatform/core build + pnpm --filter @alienplatform/bindings build + - name: Download staged addon (${{ matrix.triple }}) uses: actions/download-artifact@v7 with: diff --git a/packages/bindings/package.json b/packages/bindings/package.json index 8bc6d4b7e..67fd6ddcc 100644 --- a/packages/bindings/package.json +++ b/packages/bindings/package.json @@ -22,7 +22,6 @@ "scripts": { "build": "tsdown && tsc -p tsconfig.build.json --emitDeclarationOnly", "build:addon": "napi build --platform --release --cwd ../../crates/alien-bindings-node", - "prepare": "npm run build", "test": "vitest run", "test:bun": "bun scripts/run-bun-tests.mjs", "test:ts": "tsc --noEmit", diff --git a/packages/bindings/turbo.json b/packages/bindings/turbo.json new file mode 100644 index 000000000..517d63134 --- /dev/null +++ b/packages/bindings/turbo.json @@ -0,0 +1,11 @@ +{ + "extends": ["//"], + "tasks": { + "build:addon": { + "cache": false + }, + "test": { + "dependsOn": ["$TURBO_EXTENDS$", "build:addon"] + } + } +} diff --git a/packages/commands/package.json b/packages/commands/package.json index 43edf0785..586e765dc 100644 --- a/packages/commands/package.json +++ b/packages/commands/package.json @@ -17,7 +17,6 @@ }, "scripts": { "build": "tsdown && tsc -p tsconfig.build.json --emitDeclarationOnly", - "prepare": "npm run build", "test": "vitest run", "test:integration": "vitest run --config vitest.integration.config.ts", "test:bun": "BUN_EXPECTED=1 bun test tests/runtime-canary.test.ts tests/commands-client.test.ts tests/receiver.test.ts tests/presigned.test.ts", diff --git a/packages/core/package.json b/packages/core/package.json index fd91f0bd2..1322dae25 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -11,7 +11,6 @@ }, "scripts": { "build": "tsdown", - "prepare": "npm run build", "test": "vitest run", "test:ts": "tsc --noEmit", "generate": "rm -rf src/generated && cargo run --quiet --bin schema_exporter --features=clap,openapi -p alien-core -- --output openapi.json && kubb generate", diff --git a/packages/sdk/package.json b/packages/sdk/package.json index bc7d129dd..222ae6864 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -19,7 +19,6 @@ }, "scripts": { "build": "tsdown && tsc --emitDeclarationOnly", - "prepare": "npm run build", "test": "vitest run --passWithNoTests", "test:ts": "tsc --noEmit", "generate": "./scripts/generate-proto.sh", diff --git a/turbo.json b/turbo.json index ae559a035..834bc36ed 100644 --- a/turbo.json +++ b/turbo.json @@ -11,6 +11,7 @@ "cache": false }, "test": { + "dependsOn": ["^build", "build"], "cache": false }, "test:ts": {