Skip to content

Commit

Permalink
github-actions: test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
seliopou committed Dec 22, 2020
1 parent 0baebf5 commit 9f1605f
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: build

on:
- push
- pull_request

jobs:
tests:
name: Tests
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ocaml-version:
- 4.03.0
- 4.05.0
- 4.07.0
- 4.09.0
- 4.11.1

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

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

- name: Use OCaml ${{ matrix.ocaml-version }}
uses: avsm/setup-ocaml@v1
with:
ocaml-version: ${{ matrix.ocaml-version }}

- name: Deps
run: |
opam pin add -n bigstringaf .
opam install -t --deps-only .
- name: Build
run: opam exec -- dune build

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

0 comments on commit 9f1605f

Please sign in to comment.