diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 0772376..0ec1b2d 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -61,7 +61,9 @@ jobs: if: github.event_name == 'pull_request' working-directory: common run: | - git fetch origin "${{ github.base_ref }}" --depth=1 || true + # Full base history (NOT --depth=1): a shallow base fetch shares no merge-base + # with a PR branch that is behind base → diff-cover "no merge base" crash. + git fetch origin "${{ github.base_ref }}" || true diff-cover coverage.xml \ --compare-branch="origin/${{ github.base_ref }}" \ --fail-under=100