Skip to content
Source
Sign inSign up
pingdotgg/t3code

Smoke test bundled CLI before publish #2656

Closedanyonebutyou(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/2656/headopened View on GitHub

Showing 4 changed files with 54 additions and 0 deletions (loading 1).

x
0 of 4 viewed, 4 left
3 additions and 0 deletions.github/workflows/ci.ymlModified
View file
@@ -34,6 +34,9 @@
- name: Build desktop pipeline
run: vp run build:desktop
​
+ - name: Smoke test bundled CLI
+ run: bun --filter=t3 run smoke:cli-bundle
Thread on line 38

CI uses bun not vp

Medium Severity

The new smoke steps run bun --filter=t3 run smoke:cli-bundle, while this repo’s workflows install dependencies with setup-vp and pnpm and every other filtered task uses vp run --filter …. On runners without Bun on PATH, the smoke step fails before the bundled CLI is exercised.

Additional Locations (1)
Fix in Cursor Fix in Web
Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit c64e17073a2f0bcb8ece2779878fc4b089b0ca2d. Configure [here](https://www.cursor.com/dashboard/bugbot).
+​
- name: Verify preload bundle output
run: |
test -f apps/desktop/dist-electron/preload.cjs
3 additions and 0 deletions.github/workflows/release.ymlModified
View file
@@ -659,6 +659,9 @@
- name: Build CLI package
run: vp run --filter t3 build
​
+ - name: Smoke test bundled CLI
+ run: bun --filter=t3 run smoke:cli-bundle
+​
- name: Publish CLI package
run: node apps/server/scripts/cli.ts publish --tag "${{ needs.preflight.outputs.cli_dist_tag }}" --app-version "${{ needs.preflight.outputs.version }}" --verbose
​
48 additions and 0 deletionsapps/server/scripts/smoke-cli-bundle.tsAdded
View file
@@ -0,0 +1,48 @@
+// @effect-diagnostics nodeBuiltinImport:off