Skip to content

Commit

Permalink
Merge pull request #895 from utilForever/codecov
Browse files Browse the repository at this point in the history
Fix the problem that coverage reports are not uploaded to Codecov
  • Loading branch information
utilForever committed Jun 11, 2024
2 parents 6df76d9 + 1b92c69 commit c4cc027
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ubuntu-codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: 🧪 Code Coverage - Codecov

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
submodules: true
- name: Install packages
Expand All @@ -41,5 +41,7 @@ jobs:
run: cd build && make
- name: Run Unit Test
run: /home/runner/work/RosettaStone/RosettaStone/build/bin/UnitTests
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)
- name: Upload Coverage Reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
6 changes: 3 additions & 3 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
codecov:
require_ci_to_pass: yes
codecov:
token: ${{ secrets.CODECOV_TOKEN }}

coverage:
precision: 2
Expand Down Expand Up @@ -32,4 +32,4 @@ ignore:

comment:
layout: "header, diff, changes, uncovered"
behavior: default # update if exists else create new
behavior: default # update if exists else create new

0 comments on commit c4cc027

Please sign in to comment.