diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index a9b3f50..96ca127 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -44,10 +44,18 @@ jobs: opam-pin: false opam-depext: false + - name: Ensure Node.js is installed (Ubuntu only) + if: matrix.os == 'ubuntu-latest' + run: | + sudo apt-get install -y nodejs + node --version + - run: opam pin add -ny . - run: opam install --deps-only --with-doc --with-test -y landmarks + - run: opam install js_of_ocaml + - run: opam exec -- dune build -p landmarks - run: opam exec -- dune build -p landmarks @runtest diff --git a/tests/js/dune b/tests/js/dune index 63cedf5..7c1a0a5 100644 --- a/tests/js/dune +++ b/tests/js/dune @@ -12,6 +12,8 @@ (rule (alias runtest) (enabled_if - (>= %{ocaml_version} "4.04")) + (and + (>= %{ocaml_version} "4.04") + (= %{ocaml-config:system} linux))) (action (diff test.out.expected test.out)))