summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml27
1 files changed, 14 insertions, 13 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5f6a8f0..3a8e5ea 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -8,17 +8,18 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
+ ocaml-compiler:
+ - 4.08.x
steps:
- - uses: actions/checkout@v1
- - name: Setup OCaml
- uses: avsm/setup-ocaml@master
- - name: Install depext module
- run: opam install -y depext
- - name: Pin locally
- run: opam pin -y add --no-action .
- - name: Install locally
- run: opam depext -y -i duppy
- - name: Build locally
- run: eval $(opam env) && dune build
- - name: Run tests locally
- run: eval $(opam env) && dune runtest
+ - name: Checkout code
+ uses: actions/checkout@v2
+ - name: Use OCaml ${{ matrix.ocaml-compiler }}
+ uses: ocaml/setup-ocaml@v2
+ with:
+ ocaml-compiler: ${{ matrix.ocaml-compiler }}
+ - name: Install locally
+ run: opam install . --deps-only --with-test
+ - name: Build locally
+ run: opam exec -- dune build
+ - name: Run tests locally
+ run: opam exec -- dune runtest