From 8c4c852de4b110dcafc3d6f0f8ef63d39f8161b5 Mon Sep 17 00:00:00 2001 From: Chris Ohk Date: Tue, 11 Jun 2024 21:14:19 +0900 Subject: [PATCH 1/3] ci: Add 'token' and remove 'require_ci_to_pass' --- codecov.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 From 539024a5c6cba54416cd21c04b50faacc6e68114 Mon Sep 17 00:00:00 2001 From: Chris Ohk Date: Tue, 11 Jun 2024 21:15:15 +0900 Subject: [PATCH 2/3] ci: Update step 'Upload coverage reports to Codecov' --- .github/workflows/ubuntu-codecov.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ubuntu-codecov.yml b/.github/workflows/ubuntu-codecov.yml index b554a73ca..43c16442e 100644 --- a/.github/workflows/ubuntu-codecov.yml +++ b/.github/workflows/ubuntu-codecov.yml @@ -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 }} From 1b92c698a6cbd219e2645779b6963f43cac287fa Mon Sep 17 00:00:00 2001 From: Chris Ohk Date: Tue, 11 Jun 2024 21:15:31 +0900 Subject: [PATCH 3/3] ci: Update checkout to 'v4' --- .github/workflows/ubuntu-codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu-codecov.yml b/.github/workflows/ubuntu-codecov.yml index 43c16442e..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