From aed087e264484680ee2e899628f165f6c49c3026 Mon Sep 17 00:00:00 2001 From: ArthurW Date: Mon, 22 Jul 2024 11:27:27 +0200 Subject: [PATCH] Fix Codecov CI: add secret token, disable on PRs --- .github/workflows/coverage.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 97e750708b..5b2601608a 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -4,7 +4,6 @@ on: push: branches: - main - pull_request: schedule: # Prime the caches every Monday - cron: 0 1 * * MON @@ -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 @@ -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 }}