Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Add deno and bun GHA tests

Tomas Valentaa55e4547901f
diff --git a/.github/workflows/cli_tests.yml b/.github/workflows/cli_tests.yml
index 0b266b0a8..e66d025ca 100644
--- a/.github/workflows/cli_tests.yml
+++ b/.github/workflows/cli_tests.yml
@@ -7,7 +7,7 @@ permissions:
contents: read
jobs:
- publish:
+ test:
defaults:
run:
working-directory: ./packages/cli
diff --git a/.github/workflows/js_sdk_tests.yml b/.github/workflows/js_sdk_tests.yml
index 8726f9c4f..49491c1c8 100644
--- a/.github/workflows/js_sdk_tests.yml
+++ b/.github/workflows/js_sdk_tests.yml
@@ -10,7 +10,7 @@ permissions:
contents: read
jobs:
- publish:
+ test:
defaults:
run:
working-directory: ./packages/js-sdk
@@ -45,7 +45,25 @@ jobs:
- name: Test build
run: pnpm build
- - name: Run node tests
- run: pnpm run test
+ - name: Run Node tests
+ run: pnpm test
+ env:
+ E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
+
+ - name: Install Bun
+ uses: oven-sh/setup-bun@v2
+
+ - name: Run Bun tests
+ run: pnpm test:bun
+ env:
+ E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
+
+ - name: Install Deno
+ uses: denoland/setup-deno@v1
+ with:
+ deno-version: v1.x
+
+ - name: Run Deno tests
+ run: pnpm test:deno
env:
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
diff --git a/.github/workflows/python_sdk_tests.yml b/.github/workflows/python_sdk_tests.yml
index 0157190a6..eac96c0de 100644
--- a/.github/workflows/python_sdk_tests.yml
+++ b/.github/workflows/python_sdk_tests.yml
@@ -10,7 +10,7 @@ permissions:
contents: read
jobs:
- publish:
+ test:
defaults:
run:
working-directory: ./packages/python-sdk
diff --git a/.github/workflows/stress.test.yml b/.github/workflows/stress.test.yml
deleted file mode 100644
index d24c888ce..000000000
--- a/.github/workflows/stress.test.yml
+++ /dev/null
@@ -1,51 +0,0 @@
-name: Stress test
-
-on:
- workflow_dispatch:
-
-concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
-
-permissions:
- contents: read
-
-jobs:
- changes:
- name: Repository changes
- runs-on: ubuntu-22.04
- steps:
- - name: Checkout repository
- uses: actions/checkout@v3
- with:
- fetch-depth: 0
-
- - name: Setup Node
- uses: actions/setup-node@v3
- with:
- node-version: '20.x'
- registry-url: 'https://registry.npmjs.org'
- cache: npm
- cache-dependency-path: tests/package-lock.json
-
- - name: Install dependencies
- working-directory: tests
- run: |
- npm install
- npm install -g @e2b/cli
-
- - name: Test build
- working-directory: tests
- run: ./build.sh
- env:
- E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
- E2B_ACCESS_TOKEN: ${{ secrets.E2B_ACCESS_TOKEN_STAGING }}
- E2B_DOMAIN: ${{ secrets.E2B_DOMAIN_STAGING }}
-
- - name: Test run
- working-directory: tests
- env:
- E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
- E2B_ACCESS_TOKEN: ${{ secrets.E2B_ACCESS_TOKEN_STAGING }}
- E2B_DOMAIN: ${{ secrets.E2B_DOMAIN_STAGING }}
- run: |
- npx tsx index.mts