Skip to content

Add js_of_ocaml dep for tests, adapt test to ocaml.5.3 #124

Add js_of_ocaml dep for tests, adapt test to ocaml.5.3

Add js_of_ocaml dep for tests, adapt test to ocaml.5.3 #124

Workflow file for this run

name: Main workflow
on:
pull_request:
push:
schedule:
- cron: '0 0 * * 0' # At 00:00 UTC every Sunday
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
node-version:
- 20.x
ocaml-compiler:
- 5.2.x
- 4.12.x
- 4.11.x
- 4.10.x
- 4.09.x
- 4.08.x
include:
- os: macos-latest
node-version: 20.x
ocaml-compiler: 5.2.x
- os: windows-latest
node-version: 20.x
ocaml-compiler: 4.14.x
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use OCaml ${{ matrix.ocaml-version }}
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: true
opam-pin: false
opam-depext: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: opam pin add -ny .
- run: opam install --deps-only --with-doc --with-test -y landmarks
- run: opam exec -- dune build -p landmarks
- run: opam exec -- dune build -p landmarks @runtest
continue-on-error: ${{ runner.os == 'Windows' }}
- run: opam install --deps-only --with-doc --with-test -y landmarks-ppx
- run: opam exec -- dune build -p landmarks-ppx
- run: opam exec -- dune build -p landmarks-ppx @runtest
continue-on-error: ${{ runner.os == 'Windows' }}