Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): Upload SDK coverage report only from the main repository #768

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ jobs:
run: mv coverage/lcov.info .

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

- name: Add coverage summary
- name: Add coverage summary if upload
if: env.CODECOV_TOKEN != ''
env:
CODECOV_TOKEN: ${{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: env.CODECOV_TOKEN == ''
env:
CODECOV_TOKEN: ${{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
Loading