diff --git a/.github/workflows/ubuntu-codecov.yml b/.github/workflows/ubuntu-codecov.yml index b554a73ca..f95aa94dc 100644 --- a/.github/workflows/ubuntu-codecov.yml +++ b/.github/workflows/ubuntu-codecov.yml @@ -21,7 +21,7 @@ jobs: name: 🧪 Code Coverage - Codecov steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 with: submodules: true - name: Install packages @@ -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 }} diff --git a/codecov.yml b/codecov.yml index 7d0aa03a3..066717d3a 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,5 +1,5 @@ -codecov: - require_ci_to_pass: yes +codecov: + token: ${{ secrets.CODECOV_TOKEN }} coverage: precision: 2 @@ -32,4 +32,4 @@ ignore: comment: layout: "header, diff, changes, uncovered" - behavior: default # update if exists else create new \ No newline at end of file + behavior: default # update if exists else create new