Skip to content

fix current playground integration #36

fix current playground integration

fix current playground integration #36

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: Test
run: |
opam exec -- make
opam exec -- make test
opam exec -- make test-coverage
- name: Send coverage
run: |
if [ -d /tmp/pinc-lang ]; then rm -r /tmp/pinc-lang; fi
mkdir -p /tmp/pinc-lang
BISECT_FILE=/tmp/pinc-lang/pinc-lang opam exec -- dune runtest --no-print-directory --instrument-with bisect_ppx --force
opam exec -- bisect-ppx-report html --coverage-path /tmp/pinc-lang
opam exec -- bisect-ppx-report summary --coverage-path /tmp/pinc-lang
opam exec -- bisect-ppx-report send-to Coveralls --coverage-path /tmp/pinc-lang
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}