simplify code #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: RoutesTest | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
fail-fast: false | |
matrix: | |
operating-system: | |
- ubuntu-latest | |
ocaml-version: | |
- 4.14.x | |
- 4.08.x | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup OCaml ${{ matrix.ocaml-version }} | |
uses: ocaml/setup-ocaml@v2 | |
with: | |
ocaml-compiler: ${{ matrix.ocaml-version }} | |
dune-cache: ${{ matrix.operating-system == 'ubuntu-latest' }} | |
opam-depext-flags: --with-test | |
- name: Install dependencies | |
run: | | |
opam pin add routes.dev -n . | |
opam install -t . --deps-only | |
- name: Run tests | |
run: | | |
opam exec -- dune runtest | |
- name: Build examples | |
run: | | |
opam exec -- dune build @example |