Skip to content

Commit 9d7c792

Browse files
authored
Fix Codecov job (#1505)
Switch to proper Github Actions template to use Application with token from template Relates-To: MINOR Signed-off-by: Yaroslav Stefinko <[email protected]>
1 parent b8cbc2f commit 9d7c792

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

.github/workflows/psv_pipelines.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ jobs:
5252
- name: Run unit and integration tests
5353
run: ./scripts/linux/psv/test_psv.sh
5454
shell: bash
55+
- name: Upload coverage to Codecov
56+
uses: codecov/codecov-action@v4
57+
with:
58+
fail_ci_if_error: true # optional (default = false)
59+
verbose: true # optional (default = false)
60+
env:
61+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5562

5663
psv-linux-20-04-gcc7-build-no-cache:
5764
name: PSV.Linux.20.04.gcc7.OLP_SDK_ENABLE_DEFAULT_CACHE=OFF

scripts/linux/psv/test_psv.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,3 @@ $CPP_TEST_SOURCE_DARASERVICE_WRITE/olp-cpp-sdk-dataservice-write-tests \
4141
echo ">>> Integration Test ... >>>"
4242
$CPP_TEST_SOURCE_INTEGRATION/olp-cpp-sdk-integration-tests \
4343
--gtest_output="xml:olp-cpp-sdk-integration-tests-report.xml"
44-
45-
# CodeCov
46-
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import # One-time step
47-
curl -Os https://uploader.codecov.io/latest/linux/codecov
48-
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
49-
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
50-
51-
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
52-
shasum -a 256 -c codecov.SHA256SUM
53-
chmod +x codecov
54-
./codecov -g -v -t ${CODECOV_TOKEN}

0 commit comments

Comments
 (0)