From c7c44a56604c694032a579e3b887ee53f216edb9 Mon Sep 17 00:00:00 2001 From: Puneeth Chaganti Date: Wed, 7 Feb 2024 18:14:50 +0530 Subject: [PATCH] Run dune tests in CI --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..dbfebfd --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +--- +name: OCaml CI + +on: + push: + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup OCaml 5.1.x + uses: ocaml/setup-ocaml@v2 + with: + ocaml-compiler: 5.1.x + dune-cache: true + + - name: Install Dependencies + run: | + opam install . --deps-only --with-test + + + - name: Run Dune tests + run: | + opam exec -- dune runtest