-
-
Notifications
You must be signed in to change notification settings - Fork 31
39 lines (37 loc) · 878 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: test
on: [push, pull_request]
jobs:
opam:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ocaml:
- 5.0.x
- 4.14.x
- 4.13.1
- 4.12.1
- 4.11.2
- 4.10.2
- 4.09.1
- 4.08.1
- 4.07.1
- 4.06.1
- 4.05.0
- 4.04.2
- 4.03.0
steps:
- uses: actions/checkout@v2
- uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{matrix.ocaml}}
- run: opam install --deps-only --with-test . --yes
- run: opam exec -- make test
- run: opam lint
- if: ${{matrix.ocaml == '4.13.1'}}
env:
COVERALLS_REPO_TOKEN: ${{secrets.GITHUB_TOKEN}}
PULL_REQUEST_NUMBER: ${{github.event.number}}
run: |
opam exec -- make clean coverage
opam exec -- bisect-ppx-report send-to Coveralls