Skip to content

Commit c4cc027

Browse files
authored
Merge pull request #895 from utilForever/codecov
Fix the problem that coverage reports are not uploaded to Codecov
2 parents 6df76d9 + 1b92c69 commit c4cc027

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/ubuntu-codecov.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
name: 🧪 Code Coverage - Codecov
2222

2323
steps:
24-
- uses: actions/checkout@v1
24+
- uses: actions/checkout@v4
2525
with:
2626
submodules: true
2727
- name: Install packages
@@ -41,5 +41,7 @@ jobs:
4141
run: cd build && make
4242
- name: Run Unit Test
4343
run: /home/runner/work/RosettaStone/RosettaStone/build/bin/UnitTests
44-
- name: Upload coverage to Codecov
45-
run: bash <(curl -s https://codecov.io/bash)
44+
- name: Upload Coverage Reports to Codecov
45+
uses: codecov/codecov-action@v4
46+
env:
47+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

codecov.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
codecov:
2-
require_ci_to_pass: yes
1+
codecov:
2+
token: ${{ secrets.CODECOV_TOKEN }}
33

44
coverage:
55
precision: 2
@@ -32,4 +32,4 @@ ignore:
3232

3333
comment:
3434
layout: "header, diff, changes, uncovered"
35-
behavior: default # update if exists else create new
35+
behavior: default # update if exists else create new

0 commit comments

Comments
 (0)