From 450c1d6c90568c5f78e46182940a0e5df706a283 Mon Sep 17 00:00:00 2001 From: Ushitora Anqou Date: Mon, 18 Mar 2024 23:45:20 +0900 Subject: [PATCH] add .github/workflows/test.yaml --- .github/workflows/test.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..52fa355 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,24 @@ +name: Run unit/integration tests + +on: + pull_request: + push: + branches: + - master + +permissions: read-all + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout tree + uses: actions/checkout@v4 +# - name: Setup tmate session +# uses: mxschmitt/action-tmate@v3 + - name: Set-up OCaml 4.14.1 + uses: ocaml/setup-ocaml@v2 + with: + ocaml-compiler: "4.14.1" + - run: opam install . --deps-only --with-test + - run: opam exec -- make test