-
Notifications
You must be signed in to change notification settings - Fork 485
49 lines (41 loc) · 996 Bytes
/
js_sdk_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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
workflow_call:
secrets:
E2B_API_KEY:
required: true
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 }}