Skip to content

ci: replace deprecated codecov action, improve setup#2702

Open
serhalp wants to merge 5 commits intomainfrom
ci/codecov-action-deprecations
Open

ci: replace deprecated codecov action, improve setup#2702
serhalp wants to merge 5 commits intomainfrom
ci/codecov-action-deprecations

Conversation

@serhalp
Copy link
Copy Markdown
Member

@serhalp serhalp commented May 10, 2026

🔗 Linked issue

N/A

🧭 Context

I'm seeing two deprecation warnings in CI:

This action is being deprecated in favor of 'codecov-action'.
      Please update CI accordingly to use 'codecov-action@v5' with
      'report_type: test_results'.
      The 'codecov-action' should and can be run at least once for
      coverage and once for test results.
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected:
codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3.
Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026.
Node.js 20 will be removed from the runner on September 16th, 2026.
Please check if updated versions of these actions are available that support Node.js 24.
To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file.
Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true.
For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

📚 Description

  • Replace the deprecated action with the recommended one
  • Be more explicit about upload test results vs. coverage reports
  • Add missing exclusion for cancelled runs
  • Actually upload unit test report
  • Add Codecov "tags" for unit, component, browser

Basically:

Job Before After
Unit Test results only Test results + coverage; unit flag
Component Test results + coverage Same; component flag
Browser None Test results; browser flag
Lighthouse a11y LHCI only Unchanged

I'm seeing two deprecation warnings in CI:

```
This action is being deprecated in favor of 'codecov-action'.
      Please update CI accordingly to use 'codecov-action@v5' with
      'report_type: test_results'.
      The 'codecov-action' should and can be run at least once for
      coverage and once for test results.
```

```
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected:
codecov/test-results-action@0fa95f0.
Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026.
Node.js 20 will be removed from the runner on September 16th, 2026.
Please check if updated versions of these actions are available that support Node.js 24.
To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file.
Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true.
For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
```

This resolves both.
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview, Comment May 10, 2026 3:31pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview May 10, 2026 3:31pm
npmx-lunaria Ignored Ignored May 10, 2026 3:31pm

Request Review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 10, 2026

Review Change Stack
No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 67cf049a-4dd9-4d86-9585-a45084af0c18

📥 Commits

Reviewing files that changed from the base of the PR and between 89d754f and 8e84555.

📒 Files selected for processing (2)
  • .github/workflows/ci.yml
  • playwright.config.ts

📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Enhanced CI workflow test result reporting with improved Codecov integration across unit, component, and browser test jobs.
    • Updated test configuration to generate standardised test reports in continuous integration environments.

Walkthrough

The pull request enables JUnit test result reporting in CI environments. Playwright configuration conditionally outputs JUnit XML alongside HTML reports when running in CI. The CI workflow then uploads these JUnit test results alongside coverage reports to Codecov across all three test jobs (unit, component, browser) using unified codecov-action@v6 steps.

Changes

JUnit Test Results Integration

Layer / File(s) Summary
Test Reporter Configuration
playwright.config.ts
reporter changes from fixed 'html' to conditional: CI environments output both HTML and JUnit (test-report.junit.xml); non-CI uses HTML only.
CI Workflow Codecov Integration
.github/workflows/ci.yml
Codecov test-results uploads added to unit, test, and browser jobs using codecov/codecov-action@v6 with JUnit XML, disable_search: true, and job-specific flags. Coverage uploads unified to same action version with appropriate coverage files and cancellation guards. Previous codecov/test-results-action@v1 replaced by codecov-action@v6.

Suggested reviewers

  • ghostdevv
  • 43081j
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main objective: replacing a deprecated Codecov action and improving the CI setup, which aligns with the core changes made to the workflow.
Description check ✅ Passed The description is directly related to the changeset, providing context about deprecation warnings, explaining the motivation, and clearly documenting what changed across each job.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/codecov-action-deprecations

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@serhalp serhalp changed the title ci: replace deprecated codecov action ci: replace deprecated codecov action, improve setup May 10, 2026
@serhalp serhalp marked this pull request as ready for review May 10, 2026 15:55
@serhalp serhalp added the needs review This PR is waiting for a review from a maintainer label May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review This PR is waiting for a review from a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant