mirror of
https://github.com/espressif/openthread.git
synced 2026-10-11 02:07:40 +00:00
[ci] fix coverage upload in otns workflow (#13348)
- Replace deprecated 'upload_codecov' with 'combine_coverage' in 'otns.yml'. - Use 'codecov/codecov-action' to upload coverage in 'otns.yml', ensuring consistency with other workflows (e.g. simulation.yml).
This commit is contained in:
@@ -228,8 +228,13 @@ jobs:
|
||||
with:
|
||||
path: coverage/
|
||||
pattern: cov-*
|
||||
merge-multiple: true
|
||||
- name: Upload Coverage
|
||||
continue-on-error: ${{ !(github.repository == 'openthread/openthread' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)) }}
|
||||
- name: Combine Coverage
|
||||
run: |
|
||||
script/test upload_codecov
|
||||
script/test combine_coverage
|
||||
- name: Upload Coverage
|
||||
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
|
||||
env:
|
||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||
with:
|
||||
files: final.info
|
||||
fail_ci_if_error: true
|
||||
|
||||
Reference in New Issue
Block a user