Skip to content

Commit

Permalink
Merge pull request #202 from tmcgilchrist/master
Browse files Browse the repository at this point in the history
Add GH Actions CI enabling various OCamls.
  • Loading branch information
andreas authored Sep 24, 2021
2 parents d615cbb + d83e9c5 commit 7e55d21
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 34 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "GA"
include: "scope"
labels:
- "CI"
43 changes: 43 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
- push
- pull_request

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest

ocaml-version:
- 4.04.x
- 4.05.x
- 4.06.x
- 4.07.x
- 4.08.x
- 4.09.x
- 4.10.x
- 4.11.x
- 4.12.x

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

steps:
- 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: Dependencies
run: opam install --deps-only . --with-test
- name: Build
run: opam exec -- dune build
- name: Test
run: opam exec -- dune build @runtest
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

0 comments on commit 7e55d21

Please sign in to comment.