Skip to content

chore: add test coverage #1

chore: add test coverage

chore: add test coverage #1

Workflow file for this run

name: Test
on:
push:
branches:
- 'main'
pull_request:
branches:
- '*'
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- 5.0.x
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- name: Install dependencies
run: opam install . --locked --deps-only --with-test --yes
- name: Build and test
run: |
make
make test
make test-coverage
- name: Send coverage
run: |
opam exec -- bisect-ppx-report send-to Coveralls --coverage-path /tmp/pinc-lang
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}