@@ -172,7 +172,41 @@ jobs:
172172 if : steps.check.outputs.affected == 'true'
173173 run : pnpm nx run edge-worker:test:integration
174174
175- # ─────────────────────────────────────── 2b. CLI E2E ──────────────────────────────────────
175+ # ─────────────────────────────────────── 2b. EDGE-WORKER BUN SMOKE ──────────────────────────────────────
176+ edge-worker-bun-smoke :
177+ needs : pre_job
178+ if : needs.pre_job.outputs.should_skip != 'true'
179+ runs-on : ubuntu-latest
180+ env :
181+ NX_CLOUD_ACCESS_TOKEN : ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
182+ steps :
183+ - uses : actions/checkout@v4
184+ with :
185+ fetch-depth : 0
186+
187+ - uses : ./.github/actions/setup
188+ with :
189+ github-token : ${{ secrets.GITHUB_TOKEN }}
190+ atlas-cloud-token : ${{ secrets.ATLAS_CLOUD_TOKEN }}
191+
192+ - uses : oven-sh/setup-bun@v2
193+
194+ - name : Check if edge-worker is affected
195+ id : check
196+ run : |
197+ if pnpm nx show projects --affected --base=origin/main --head=HEAD | grep -q "^edge-worker$"; then
198+ echo "affected=true" >> $GITHUB_OUTPUT
199+ echo "edge-worker is affected, running Bun smoke"
200+ else
201+ echo "affected=false" >> $GITHUB_OUTPUT
202+ echo "edge-worker not affected, skipping Bun smoke"
203+ fi
204+
205+ - name : Run edge-worker Bun smoke
206+ if : steps.check.outputs.affected == 'true'
207+ run : pnpm nx run edge-worker:smoke:bun
208+
209+ # ─────────────────────────────────────── 2c. CLI E2E ──────────────────────────────────────
176210 cli-e2e :
177211 needs : pre_job
178212 if : needs.pre_job.outputs.should_skip != 'true'
@@ -208,7 +242,7 @@ jobs:
208242 if : steps.check.outputs.affected == 'true'
209243 run : pnpm nx run cli:e2e
210244
211- # ─────────────────────────────────────── 2c . CLIENT E2E ──────────────────────────────────────
245+ # ─────────────────────────────────────── 2d . CLIENT E2E ──────────────────────────────────────
212246 client-e2e :
213247 needs : pre_job
214248 if : needs.pre_job.outputs.should_skip != 'true'
@@ -244,7 +278,7 @@ jobs:
244278 if : steps.check.outputs.affected == 'true'
245279 run : pnpm nx run client:e2e
246280
247- # ─────────────────────────────────────── 2d . CORE PGTAP ──────────────────────────────────────
281+ # ─────────────────────────────────────── 2e . CORE PGTAP ──────────────────────────────────────
248282 core-pgtap :
249283 needs : pre_job
250284 if : needs.pre_job.outputs.should_skip != 'true'
@@ -288,6 +322,7 @@ jobs:
288322 build-and-test,
289323 edge-worker-e2e,
290324 edge-worker-integration,
325+ edge-worker-bun-smoke,
291326 cli-e2e,
292327 client-e2e,
293328 core-pgtap,
@@ -340,6 +375,7 @@ jobs:
340375 build-and-test,
341376 edge-worker-e2e,
342377 edge-worker-integration,
378+ edge-worker-bun-smoke,
343379 cli-e2e,
344380 client-e2e,
345381 core-pgtap,
0 commit comments