Skip to content

Commit b58015b

Browse files
committed
Enable coverage for cram tests in github actions
This is what pushes to coveralls. Also enable ocaml 5.0 and 5.1, and change coverage reporting from 4.14 to 5.1
1 parent 0e1ab6c commit b58015b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ jobs:
1919
- 4.10.x
2020
- 4.12.x
2121
- 4.14.x
22+
- 5.0.x
23+
- 5.1.x
2224
include:
2325
- os: ubuntu-latest
24-
ocaml-compiler: 4.14.x
26+
ocaml-compiler: 5.1.x
2527
# We don't need to compute coverage for more than one build
2628
send-coverage: true
2729
# Mdx tests Mdx tests
@@ -60,8 +62,10 @@ jobs:
6062
if: matrix.send-coverage == true
6163
run: |
6264
opam install bisect_ppx
65+
mkdir -p $BISECT_FILE
6366
opam exec -- dune runtest --instrument-with bisect_ppx --force
64-
opam exec -- bisect-ppx-report send-to Coveralls
67+
opam exec -- bisect-ppx-report send-to Coveralls --coverage-path /tmp/coverage
6568
env:
69+
BISECT_FILE: /tmp/coverage/bisect
6670
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6771
PULL_REQUEST_NUMBER: ${{ github.event.number }}

0 commit comments

Comments
 (0)