1
0

e2b-e2e.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. name: E2E (E2B sandbox)
  2. # This suite provisions external E2B sandboxes and is intentionally opt-in.
  3. # It has no push, pull_request, schedule, or workflow_call trigger.
  4. on:
  5. workflow_dispatch:
  6. permissions:
  7. contents: read
  8. env:
  9. # CI runs must never report to the production telemetry endpoint baked
  10. # into apps/cli/cordis.yml (AppCLIEntry disables the row when set).
  11. DSH_TELEMETRY_DISABLED: '1'
  12. jobs:
  13. e2b:
  14. runs-on: ubuntu-latest
  15. name: E2B live Loader composition
  16. timeout-minutes: 30
  17. steps:
  18. - uses: actions/checkout@v6
  19. - uses: pnpm/action-setup@v4
  20. - uses: actions/setup-node@v6
  21. with:
  22. node-version: 24
  23. cache: pnpm
  24. - name: Install (immutable)
  25. run: pnpm install --frozen-lockfile
  26. # The tests self-skip locally when the credential is absent. A manually
  27. # dispatched run must fail instead of reporting an all-skipped green.
  28. - name: Preflight (require E2B API key)
  29. env:
  30. E2B_API_KEY: ${{ secrets.E2B_API_KEY_EXTERNAL }}
  31. run: |
  32. set -euo pipefail
  33. if [ -z "${E2B_API_KEY:-}" ]; then
  34. echo "::error::E2B_API_KEY is empty. Configure the E2B_API_KEY_EXTERNAL repository secret."
  35. exit 1
  36. fi
  37. echo "E2B_API_KEY present."
  38. # The Loader smoke runs package exports under plain Node in lib mode.
  39. - name: Build (lib for the E2B Loader smoke)
  40. run: pnpm run build:official
  41. - name: E2B tests (live sandbox)
  42. env:
  43. E2B_API_KEY: ${{ secrets.E2B_API_KEY_EXTERNAL }}
  44. DSH_E2E_MAX_WORKERS: '1'
  45. DSH_EXAMPLE_MODE: lib
  46. run: >-
  47. pnpm exec vitest run --config vitest.e2e.config.ts
  48. packages/e2b/e2b/tests/composition.e2e.ts