Skip to content

Codecov does not receive a report when merging with develop #12

@henrikjacobsenfys

Description

@henrikjacobsenfys

This means every PR gets the same message from codecov which looks like this:

Please upload report for BASE (develop@6540464). 

I investigated this a bit more. It looks like squash and merge does not trigger codecov, so we never upload a report for the develop branch after merging a PR.

neutro recommends the following solution (in .github/workflos/coverage.yml)

Replace your current on: block with this

on:
  push:
    branches:
      - develop
  pull_request:
  workflow_dispatch:

Replace your current concurrency: block with this

concurrency:
  group: >
    ${{ github.event_name == 'pull_request'
        && format('{0}-pr-{1}', github.workflow, github.event.pull_request.number)
        || format('{0}-push-{1}', github.workflow, github.ref_name) }}
  cancel-in-progress: ${{ github.event_name == 'pull_request' }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    [priority] mediumNormal/default priority[scope] bugBug report or fix (major.minor.PATCH)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions