Skip to content

Commit

Permalink
chore(ci) restore Codecov support alongside Coveralls
Browse files Browse the repository at this point in the history
Codecov has a couple features that Coveralls lacks: better PR comments
and PR diff comments of uncovered lines. It's also easier to maintain
compared to the `carryforward` flags of Coveralls.
  • Loading branch information
thibaultcha committed Sep 11, 2023
1 parent 6b17917 commit 11b1a47
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/job-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ jobs:
flag-name: ${{ steps.lcov.outputs.name }}
path-to-lcov: './lcov.info'
parallel: true
- name: Codecov Upload
if: ${{ !env.ACT && inputs.cc == 'gcc-9' && inputs.coverage }}
uses: codecov/codecov-action@v3
with:
files: './lcov.info'
- uses: actions/upload-artifact@v2
if: ${{ failure() && !env.ACT }}
with:
Expand Down
28 changes: 28 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# https://docs.codecov.io/docs/codecovyml-reference
codecov:
require_ci_to_pass: yes
notify:
wait_for_ci: yes
after_n_builds: 9

coverage:
precision: 4
round: down
range: "75...100"
status:
project:
default:
target: auto
threshold: 3%
base: auto
flags:
- unit
paths:
- src

comment:
layout: "reach, diff, files"
behavior: default
require_changes: false
require_base: no
require_head: yes

0 comments on commit 11b1a47

Please sign in to comment.