Skip to content

Commit 45ce4f9

Browse files
committed
chore: replace outdated codecov action
1 parent d2b5e79 commit 45ce4f9

File tree

1 file changed

+6
-53
lines changed

1 file changed

+6
-53
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -372,64 +372,17 @@ jobs:
372372
if-no-files-found: ignore
373373
retention-days: 90
374374

375-
- name: Upload test results to Codecov (als)
376-
if: ${{ !cancelled() && hashFiles('out/junit/als/*.xml') != '' }}
377-
uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1.2.1
378-
with:
379-
fail_ci_if_error: true
380-
directory: out/junit/als
381-
handle_no_reports_found: true
382-
name: ${{ matrix.id }}
383-
# unable to use wildcards yet due to https://github.com/codecov/test-results-action/issues/110
384-
flags: ${{ steps.setup.outputs.OS_VERSION }},${{ steps.setup.outputs.ARCH }},als
385-
use_oidc: ${{ github.event_name == 'merge_group' || github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}
386-
387-
- name: Upload test results to Codecov (mcp)
388-
if: ${{ !cancelled() && hashFiles('out/junit/mcp/*.xml') != '' }}
389-
uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1.2.1
390-
with:
391-
fail_ci_if_error: true
392-
directory: out/junit/mcp
393-
handle_no_reports_found: true
394-
name: ${{ matrix.id }}
395-
# unable to use wildcards yet due to https://github.com/codecov/test-results-action/issues/110
396-
flags: ${{ steps.setup.outputs.OS_VERSION }},${{ steps.setup.outputs.ARCH }},mcp
397-
use_oidc: ${{ github.event_name == 'merge_group' || github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}
398-
399-
- name: Upload test results to Codecov (e2e)
400-
if: ${{ !cancelled() && hashFiles('out/junit/e2e/*.xml') != '' }}
401-
uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1.2.1
402-
with:
403-
fail_ci_if_error: true
404-
directory: out/junit/e2e
405-
handle_no_reports_found: true
406-
name: ${{ matrix.id }}
407-
# unable to use wildcards yet due to https://github.com/codecov/test-results-action/issues/110
408-
flags: ${{ steps.setup.outputs.OS_VERSION }},${{ steps.setup.outputs.ARCH }},e2e
409-
use_oidc: ${{ github.event_name == 'merge_group' || github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}
410-
411-
- name: Upload test results to Codecov (unit)
412-
if: ${{ !cancelled() && hashFiles('out/junit/unit/*.xml') != '' }}
413-
uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1.2.1
414-
with:
415-
fail_ci_if_error: true
416-
directory: out/junit/unit
417-
handle_no_reports_found: true
418-
name: ${{ matrix.id }}
419-
# unable to use wildcards yet due to https://github.com/codecov/test-results-action/issues/110
420-
flags: ${{ steps.setup.outputs.OS_VERSION }},${{ steps.setup.outputs.ARCH }},,unit
421-
use_oidc: ${{ github.event_name == 'merge_group' || github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}
422-
423-
- name: Upload test results to Codecov (ui)
424-
if: ${{ !cancelled() && hashFiles('out/junit/ui/*.xml') != '' }}
425-
uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1.2.1
375+
- name: Upload test results to Codecov
376+
if: ${{ !cancelled() && hashFiles('out/junit/**/*.xml') != '' }}
377+
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
426378
with:
379+
directory: out/junit
427380
fail_ci_if_error: true
428-
directory: out/junit/ui
429381
handle_no_reports_found: true
382+
report_type: test_results
430383
name: ${{ matrix.id }}
431384
# unable to use wildcards yet due to https://github.com/codecov/test-results-action/issues/110
432-
flags: ${{ steps.setup.outputs.OS_VERSION }},${{ steps.setup.outputs.ARCH }},,ui
385+
flags: ${{ steps.setup.outputs.OS_VERSION }},${{ steps.setup.outputs.ARCH }}
433386
use_oidc: ${{ github.event_name == 'merge_group' || github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}
434387

435388
# - name: Stop services

0 commit comments

Comments
 (0)