-
Notifications
You must be signed in to change notification settings - Fork 485
50 lines (40 loc) · 1.1 KB
/
js_sdk_compat_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
50
name: Test JS SDK compatibility (across node versions and OSes)
on:
push:
# Tests should already be run on PRs
branches:
- '**'
- '!main'
paths:
- packages/js-sdk/**/*
- .github/workflows/js_sdk_compat_tests.yml
permissions:
contents: read
jobs:
test:
defaults:
run:
working-directory: ./packages/js-sdk
name: Build and test SDK on Node ${{ matrix.node-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [ 20, 18, 16 ]
os: [ macos-latest, ubuntu-latest, windows-latest ]
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build SDK
run: pnpm run build
- name: Run tests
run: pnpm run test-smoke
env:
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}