-
Notifications
You must be signed in to change notification settings - Fork 11
36 lines (34 loc) · 894 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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