Skip to content

Conversation

@CrashBytes
Copy link
Owner

Adds a dedicated test workflow with coverage reporting for continuous integration.

Changes:

  • Create test.yml workflow for CI testing
  • Run tests on Node.js 18.x, 20.x, and 22.x for compatibility
  • Generate and upload test coverage to Codecov
  • Add CODECOV_TOKEN secret requirement for Codecov v4 API
  • Only upload coverage from Node 20.x to avoid duplicate reports

Why this is needed:
Currently dendro only has a release.yml that runs on tags. This adds proper CI testing for:

  • Pull requests (pre-merge validation)
  • Push to main (continuous testing)
  • Test coverage tracking

After merging:
You need to add the CODECOV_TOKEN secret to the repository:

  1. Get token from https://codecov.io/gh/CrashBytes/dendro/settings
  2. Add to GitHub: Settings → Secrets → Actions → New repository secret
  3. Name: CODECOV_TOKEN
  4. The workflow will run automatically on next push/PR

This will enable coverage badges and ensure tests run before releases.

- Add test.yml workflow for CI testing
- Run tests on Node 18.x, 20.x, 22.x
- Generate and upload coverage to Codecov
- Add CODECOV_TOKEN for v4 API
- Only upload from Node 20.x to avoid duplicates
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarQube Cloud

@CrashBytes CrashBytes merged commit a2fde4f into main Jan 15, 2026
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants