Skip to content

Commit

Permalink
run js test only on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinans committed Jan 13, 2025
1 parent fda4d70 commit 0dd7fa0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion tests/js/dune
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

0 comments on commit 0dd7fa0

Please sign in to comment.