Skip to content

Commit

Permalink
Use node-canary to run interpreter-generated JS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sbc100 committed Oct 12, 2024
1 parent 61e34cc commit 188ea7d
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/ci-interpreter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: CI for interpreter & tests

on:
push:
branches: [ main ]
branches: [ main, wasm-3.0 ]
paths: [ .github/**, interpreter/**, test/** ]

pull_request:
branches: [ main ]
branches: [ main, wasm-3.0 ]
paths: [ .github/**, interpreter/**, test/** ]

# Allows you to run this workflow manually from the Actions tab
Expand All @@ -15,6 +15,8 @@ on:
jobs:
interpreter:
runs-on: ubuntu-latest
env:
NODE_VERSION: 23.0.0-v8-canary202410117cc3ef4a54
steps:
- name: Checkout repo
uses: actions/checkout@v2
Expand All @@ -24,13 +26,13 @@ jobs:
ocaml-compiler: 4.14.x
- name: Setup OCaml tools
run: opam install --yes ocamlfind.1.9.5 js_of_ocaml.4.0.0 js_of_ocaml-ppx.4.0.0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 20.x
- name: Build interpreter
run: cd interpreter && opam exec make
- name: Setup node canary
run: |
wget https://nodejs.org/download/v8-canary/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.xz
tar xf -C $HOME node-v${NODE_VERSION}-linux-x64.tar.xz
- name: Run tests
# TODO: reactiate node once it supports all of Wasm 3.0
# run: cd interpreter && opam exec make JS=node ci
run: cd interpreter && opam exec make ci
run: |
NODE=$HOME/node-v${NODE_VERSION}/bin/node
cd interpreter && opam exec make "JS=$NODE --wasm-staging" ci

0 comments on commit 188ea7d

Please sign in to comment.