Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 31cabf8

Browse files
authored
[interpreter] Run JS tests via node.js (#1595)
1 parent aa15776 commit 31cabf8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
with:
2020
ocaml-compiler: 4.12.x
2121
- run: opam install --yes ocamlbuild.0.14.0
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: 18.x
2226
- run: cd interpreter && opam exec make all
2327

2428
ref-interpreter-js-library:

interpreter/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ FLAGS = -lexflags -ml -cflags '-w +a-4-27-42-44-45-70 -warn-error +a-3'
2323
OCBA = ocamlbuild $(FLAGS) $(DIRS:%=-I %)
2424
OCB = $(OCBA) $(LIBS:%=-libs %)
2525
JSO = js_of_ocaml -q --opt 3
26-
JS = # set to JS shell command to run JS tests
26+
JS = node # set to JS shell command to run JS tests, empty to skip
2727

2828

2929
# Main targets

0 commit comments

Comments
 (0)