Skip to content

fix: make invoke runtime worker-safe #44

fix: make invoke runtime worker-safe

fix: make invoke runtime worker-safe #44

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.x"
- name: Install Python FlatBuffers runtime
run: python3 -m pip install flatbuffers
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Install latest emsdk
run: |
git clone https://github.com/emscripten-core/emsdk.git "$RUNNER_TEMP/emsdk"
cd "$RUNNER_TEMP/emsdk"
./emsdk install latest
./emsdk activate latest
- run: source "$RUNNER_TEMP/emsdk/emsdk_env.sh" && npm ci
- run: source "$RUNNER_TEMP/emsdk/emsdk_env.sh" && npm test
- run: source "$RUNNER_TEMP/emsdk/emsdk_env.sh" && npm run check:compliance