Skip to content

Commit

Permalink
chore(ci): Upload SDK coverage report only from the main repository
Browse files Browse the repository at this point in the history
  • Loading branch information
alainncls committed Oct 22, 2024
1 parent f340f7c commit 46de4d2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
run: mv coverage/lcov.info .

- name: Upload coverage report to Codecov
if: secrets.CODECOV_TOKEN != ''
uses: codecov/codecov-action@v3
with:
files: ./sdk/lcov.info
Expand All @@ -72,11 +73,18 @@ jobs:
coverage-file: sdk/lcov.info
minimum-coverage: 50

- name: Add coverage summary
- name: Add coverage summary if upload
if: secrets.CODECOV_TOKEN != ''
run: |
echo "## Coverage result" >> $GITHUB_STEP_SUMMARY
echo "✅ Uploaded to Codecov" >> $GITHUB_STEP_SUMMARY
- name: Add coverage summary if no upload
if: secrets.CODECOV_TOKEN == ''
run: |
echo "## Coverage result" >> $GITHUB_STEP_SUMMARY
echo "✅ Coverage not uploaded to Codecov" >> $GITHUB_STEP_SUMMARY
integration-test-sdk:
runs-on: ubuntu-latest

Expand Down

0 comments on commit 46de4d2

Please sign in to comment.