diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 586c20a3..b6020759 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -196,6 +196,24 @@ jobs: - name: Test the offline export run: pnpm turbo run test --filter=@coder/offlinedocs + # Turbopack lets node: imports leak into the client bundle; only webpack fails on them. + offline-webpack: + name: offline export on webpack + runs-on: ubuntu-latest + timeout-minutes: 20 + steps: + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: ./.github/actions/setup + - name: Build packages + run: pnpm turbo run build --filter='./packages/*' + - name: Sync the fixture corpus (apps/offlinedocs) + run: pnpm --filter @coder/offlinedocs sync + - name: Build the offline export with webpack (apps/offlinedocs) + working-directory: apps/offlinedocs + run: pnpm exec next build --webpack + - name: No API playground code in the webpack export + run: pnpm --filter @coder/offlinedocs playground:check + # A pinned release binary rather than a marketplace action or the Docker # image: the tarball's sha256 is hard-coded here, so a re-pushed tag can't # change what runs, and actionlint picks up the runner's own shellcheck for @@ -380,6 +398,7 @@ jobs: test, test-matrix-guard, node-22, + offline-webpack, actionlint, dist-dry-run, code-samples-format,