Skip to content

Add CI test step with Vitest - #7

Merged
PiLep merged 2 commits into
mainfrom
cursor/ci-test-step-d524
Jul 27, 2026
Merged

Add CI test step with Vitest#7
PiLep merged 2 commits into
mainfrom
cursor/ci-test-step-d524

Conversation

@PiLep

@PiLep PiLep commented Jul 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds Vitest and a npm test script with unit tests for pure helpers (indicators, format, month, labels).
  • Introduces a test job in .github/workflows/deploy.yml that runs on pull requests and pushes to main.
  • Keeps the existing security audit job from main; deploy now needs both test and security.
  • Merged latest main (Next 15 / audit overrides) and regenerated the lockfile.

Test plan

  • npm test locally (39 tests passing)
  • npm run audit locally (0 vulnerabilities)
  • Confirm GitHub Actions test and security jobs run on this PR
  • Confirm build remains skipped on PRs and still runs after both gates on main
Open in Web Open in Cursor 

Run unit tests on pull requests and main pushes, and gate the Docker
build/push on a green test job.

Co-authored-by: Pile <pierre@kanta.fr>
@PiLep
PiLep marked this pull request as ready for review July 27, 2026 19:36
Resolve complementary conflicts by retaining Vitest tests alongside the
npm audit gate, and regenerate the lockfile for Next 15 + Vitest.

Co-authored-by: Pile <pierre@kanta.fr>
@PiLep
PiLep merged commit 18b0ad8 into main Jul 27, 2026
3 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.

2 participants