Skip to content

Commit

Permalink
CI: restore self-coverage and usage test
Browse files Browse the repository at this point in the history
  • Loading branch information
aantron committed Nov 6, 2021
1 parent 1809165 commit c6af95e
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ jobs:
- uses: actions/checkout@v2
- uses: avsm/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml }}
ocaml-compiler: ${{matrix.ocaml}}
- run: opam install --deps-only --yes .
- if: ${{runner.os == 'Linux'}}
run: |
wget https://github.com/aantron/ocamlformat-binary/releases/download/0.15.0/ocamlformat
sudo mv ocamlformat /usr/local/bin/ocamlformat
sudo chmod a+x /usr/local/bin/ocamlformat
- if: ${{runner.os != 'Linux'}}
run: opam install ocamlformat.0.16.0
run: opam install ocamlformat.0.16.0 --yes
- run: |
opam --version
opam exec -- ocaml -version
Expand All @@ -78,3 +78,18 @@ jobs:
unset GITHUB_ACTIONS
unset GITHUB_RUN_NUMBER
opam exec -- make test TEST=$TEST_ALIAS
# Reason requires OCaml < 4.12.1.
- if: ${{matrix.ocaml == '4.12.1' && runner.os == 'Linux'}}
env:
COVERALLS_REPO_TOKEN: ${{secrets.GITHUB_TOKEN}}
PULL_REQUEST_NUMBER: ${{github.event.number}}
run: |
opam install reason js_of_ocaml --yes
opam exec -- make clean-usage usage
(unset GITHUB_ACTIONS && unset GITHUB_RUN_NUMBER && \
unset COVERALLS_REPO_TOKEN && unset PULL_REQUEST_NUMBER && \
opam exec -- make clean self-coverage)
(cd _self && \
_build/install/default/bin/meta-bisect-ppx-report \
send-to Coveralls bisect*.meta)

0 comments on commit c6af95e

Please sign in to comment.