From 3129b427cd27728202957247dbd999b62a496a99 Mon Sep 17 00:00:00 2001 From: Cristian Greco Date: Tue, 6 Oct 2026 19:41:34 +0100 Subject: [PATCH] Add Bun smoke test to CI --- .github/workflows/checks.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 5b61647d3..cf2ba23b3 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -146,6 +146,40 @@ jobs: env: DEBUG: "testcontainers*" + smoke-test-bun: + if: ${{ needs.detect-modules.outputs.has_testcontainers == 'true' }} + needs: + - detect-modules + - lint + - compile + name: Smoke tests (Bun) + runs-on: ubuntu-24.04 + steps: + - name: Code checkout + uses: actions/checkout@v7 + - name: Install Node and Dependencies + uses: ./.github/actions/npm-setup + with: + runner: ubuntu-24.04 + node-version: 24.x + workspace: "testcontainers" + - name: Build testcontainers + run: npm run build --workspace packages/testcontainers + - name: Remove dev dependencies + run: npm prune --omit=dev --workspace packages/testcontainers + - name: Install Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: 1.4.2 + - name: Run CommonJS module smoke test + run: bun packages/testcontainers/smoke-test.js + env: + DEBUG: "testcontainers*" + - name: Run ES module smoke test + run: bun packages/testcontainers/smoke-test.mjs + env: + DEBUG: "testcontainers*" + test: if: ${{ needs.detect-modules.outputs.modules_count != '0' }} name: Tests @@ -175,6 +209,7 @@ jobs: - lint - compile - smoke-test + - smoke-test-bun - test runs-on: ubuntu-24.04 steps: