-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (37 loc) · 1.05 KB
/
Copy pathruntime-tests.yml
File metadata and controls
37 lines (37 loc) · 1.05 KB
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
name: Runtime Tests CI
on:
pull_request:
paths:
- "packages/runtime/**"
- ".github/workflows/runtime-tests.yml"
jobs:
test-runtime:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- name: Install Boost
run: sudo apt-get update && sudo apt-get install -y libboost-dev
- name: Start unsandbox
run: |
pnpm exec unsandbox --port 3055 &
for i in {1..30}; do
if curl -s http://localhost:3055/api/list.json > /dev/null; then
echo "unsandbox is ready"
break
fi
echo "Waiting for unsandbox..."
sleep 1
done
- name: Run runtime tests
env:
WANDBOX_URL: http://localhost:3055
run: pnpm run --filter @my-code/runtime test