Switch to bisect_ppx_ng #79
This file contains hidden or 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 master in docker (OCaml 4.14) | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| paths-ignore: | |
| - 'README.md' | |
| pull_request: | |
| paths-ignore: | |
| - 'README.md' | |
| branches: | |
| - 'master' | |
| env: | |
| OPAMCONFIRMLEVEL: unsafe-yes | |
| GT_WITH_DOCS: yes | |
| OPAMROOT: /home/opam/.opam | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| containers: [ 'zanuda414' ] | |
| runs-on: ubuntu-latest | |
| container: | |
| image: kakadu18/ocaml:${{ matrix.containers }} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.containers }} | |
| cancel-in-progress: true | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 2 | |
| - run: | | |
| sudo apt-get update | |
| sudo apt-get install pkg-config libpcre2-dev m4 xdot --no-install-recommends -y | |
| - run: opam --version | |
| - run: opam update | |
| - run: opam pin add bisect_ppx_ng https://github.com/Kakadu/bisect_ppx_ng.git\#rename --no-action | |
| - run: opam install . --deps-only --with-test --with-doc | |
| - run: opam exec -- dune build @check --profile=release | |
| - run: opam exec -- dune test --profile=release | |
| - name: Send coverage report to Coveralls | |
| run: | | |
| opam exec -- make coverage | |
| opam exec -- bisect-ppx-report send-to Coveralls --coverage-path $BISECT_DIR | |
| env: | |
| BISECT_DIR: /tmp/GTcov | |
| COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PULL_REQUEST_NUMBER: ${{ github.event.number }} | |
| - name: Installing using Opam | |
| run: | | |
| opam exec -- dune build @install | |
| opam exec -- dune install | |
| - name: Build API documentation | |
| if: github.event_name != 'pull_request' | |
| run: | | |
| opam exec -- make install odig | |
| echo "ODIG_DOC_LOC=$(opam exec -- odig cache path)/html" >> $GITHUB_ENV | |
| - name: Deploy documentation | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ${{ env.ODIG_DOC_LOC }} | |
| - name: Installing using Opam | |
| run: opam pin add GT ./ | |
| - name: List files | |
| run: opam show --list-files GT |