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 efe34d8
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 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,14 @@ 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: |
cd $HOME
wget https://nodejs.org/download/v8-canary/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.xz
tar xf 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 efe34d8

Please sign in to comment.