From 98f61c786f545c368dc3d11e387f83e9d6159b7d Mon Sep 17 00:00:00 2001 From: Andreas Rossberg Date: Thu, 9 Feb 2023 18:02:34 +0100 Subject: [PATCH] [interpreter] Run JS tests via node.js (#1595) --- .github/workflows/main.yml | 4 ++++ interpreter/Makefile | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 00b70e8f03..2e43f200a5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,6 +19,10 @@ jobs: with: ocaml-compiler: 4.12.x - run: opam install --yes ocamlbuild.0.14.0 + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: 18.x - run: cd interpreter && opam exec make all ref-interpreter-js-library: diff --git a/interpreter/Makefile b/interpreter/Makefile index 499b3a6331..78cbea556a 100644 --- a/interpreter/Makefile +++ b/interpreter/Makefile @@ -23,7 +23,7 @@ FLAGS = -lexflags -ml -cflags '-w +a-4-27-42-44-45-70 -warn-error +a-3' OCBA = ocamlbuild $(FLAGS) $(DIRS:%=-I %) OCB = $(OCBA) $(LIBS:%=-libs %) JSO = js_of_ocaml -q --opt 3 -JS = # set to JS shell command to run JS tests +JS = node # set to JS shell command to run JS tests, empty to skip # Main targets