Skip to content

Commit

Permalink
Fix Codecov CI: add secret token, disable on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
art-w committed Jul 25, 2024
1 parent 7186af2 commit aed087e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
pull_request:
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON
Expand All @@ -30,6 +29,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
Expand All @@ -46,6 +47,7 @@ jobs:
run: opam exec -- dune runtest --instrument-with bisect_ppx

- name: Send coverage report to Codecov
run: opam exec -- bisect-ppx-report send-to Codecov
run: opam exec -- bisect-ppx-report send-to Codecov --verbose
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
PULL_REQUEST_NUMBER: ${{ github.event.number }}

0 comments on commit aed087e

Please sign in to comment.