Merge pull request #1191 from Julow/man_kind_prefixing #601
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build" | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: # Check build on various OSes | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
ocaml-compiler: | |
- 4.02.x | |
- 4.04.x | |
- 4.06.x | |
- 4.08.x | |
- 4.10.x | |
- 4.12.x | |
- 4.14.x | |
- 5.0.x | |
- 5.1.x | |
include: | |
- os: ubuntu-latest | |
ocaml-compiler: 5.1.x | |
# We don't need to compute coverage for more than one build | |
send-coverage: true | |
# Mdx tests Mdx tests | |
run-mdx: true | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
# Clone the project | |
- uses: actions/checkout@v2 | |
# Setup | |
- name: Setup OCaml ${{ matrix.ocaml-version }} | |
uses: ocaml/setup-ocaml@v2 | |
with: | |
# Do not pin odoc to not break Mdx installation | |
opam-pin: false | |
ocaml-compiler: ${{ matrix.ocaml-compiler }} | |
opam-local-packages: | | |
odoc.opam | |
- name: Install dependencies | |
run: opam install -y --deps-only -t ./odoc.opam ./odoc-parser.opam | |
- name: dune runtest | |
run: opam exec -- dune runtest | |
- name: Mdx tests | |
if: matrix.run-mdx == true | |
run: | | |
opam install -y mdx | |
opam exec -- dune build @runmdx | |
- name: Send coverage stats to Coveralls | |
if: matrix.send-coverage == true | |
run: | | |
opam install bisect_ppx | |
mkdir -p $BISECT_FILE | |
opam exec -- dune runtest --instrument-with bisect_ppx --force | |
opam exec -- bisect-ppx-report send-to Coveralls --coverage-path /tmp/coverage | |
env: | |
BISECT_FILE: /tmp/coverage/bisect | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PULL_REQUEST_NUMBER: ${{ github.event.number }} |