Skip to content

Commit

Permalink
Add .github/workflows/runtest.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ushitora-anqou committed Aug 20, 2023
1 parent 97298cb commit 3634617
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/runtest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Run tests

on:
pull_request:
push:
workflow_dispatch:

permissions: read-all

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
# - windows-latest
ocaml-compiler:
- "5.0"

runs-on: ${{ matrix.os }}

steps:
- name: Checkout tree
uses: actions/checkout@v3

- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}

- run: opam install . --deps-only --with-test

- run: opam exec -- dune build

- run: opam exec -- dune runtest

0 comments on commit 3634617

Please sign in to comment.