Skip to content

build: improve node compatibility #5

build: improve node compatibility

build: improve node compatibility #5

Workflow file for this run

name: "Node: Build + Integration"
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x # Run with latest stable Deno.
- name: Start Pebble and pebble-challtestsrv
run: deno task pebble:start --detach
- name: Wait for Pebble to be ready
run: |
echo "⏳ Waiting for Pebble... 🪨"
# Loop until the port 14000 is open
until nc -zv localhost 14000 2>/dev/null; do
sleep 1
done
echo "✅ Pebble is running!"
- name: Wait for pebble-challtestsrv to be ready
run: |
echo "⏳ Waiting for pebble-challtestsrv... 🪨"
until nc -zv localhost 8055 2>/dev/null; do
sleep 1
done
echo "✅ pebble-challtestsrv is running!"
- run: deno task build:npm:integration
- name: Stop Pebble
run: deno task pebble:stop