Skip to content

fix merge

fix merge #15

Workflow file for this run

name: Test JS SDK
on:
push:
# Tests are already running on main before release
branches:
- '**'
- '!main'
paths:
- packages/js-sdk/**/*
- .github/workflows/js_sdk_tests.yml
permissions:
contents: read
jobs:
publish:
defaults:
run:
working-directory: ./packages/js-sdk
name: Build and test SDK
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
cache: pnpm
- name: Install pnpm
run: pnpm install --frozen-lockfile
- name: Test build
run: pnpm run build
- name: Run tests
run: pnpm run test
env:
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}