Skip to content

Commit

Permalink
Merge pull request #4 from Khady/louis/test
Browse files Browse the repository at this point in the history
ci: initial setup
  • Loading branch information
pedrobslisboa authored Sep 7, 2024
2 parents 29c5ac1 + 07afb92 commit e61fede
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
39 changes: 39 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and Test

on:
- push
- pull_request

jobs:
build-and-test:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
# - windows-latest
ocaml-version:
- 5.1

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

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Use OCaml ${{ matrix.ocaml-version }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-version }}
dune-cache: true
opam-depext-flags: "--with-test"
allow-prerelease-opam: true

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

- name: build project
run: opam exec -- dune build

- name: run test
run: opam exec -- dune runtest

0 comments on commit e61fede

Please sign in to comment.