Skip to content

Add CI: run tests and lint on every PR - #280

Merged
xrendan merged 1 commit into
mainfrom
ci/add-test-workflow
Sep 1, 2026
Merged

xrendan merged 1 commit into
mainfrom
ci/add-test-workflow

Conversation

@xrendan

@xrendan xrendan commented Sep 1, 2026

Copy link
Copy Markdown
Member

Summary

The repo had vitest test files (Ontario/Quebec tax calculators, spending categories, sankey transform — 60 tests) but no test runner installed and no CI, so nothing ever ran them. This PR makes them run and show up as checks on every PR.

  • Add vitest as a dev dependency with test / test:watch scripts
  • Add vitest.config.mts to resolve the @/ path alias used by the code under test
  • Add a GitHub Actions workflow (.github/workflows/ci.yml) with Test and Lint jobs on all pull requests and pushes to main

Cloudflare deployment

The Cloudflare Workers deployment was removed on the Cloudflare side (the canadaspends worker and its git-connected build). main was verified clean — no wrangler/OpenNext config, scripts, or lockfile entries exist on this branch. The only in-repo Cloudflare artifacts live on the unmerged feat/supabase-auth-posthog branch.

Testing

  • pnpm test — 60 tests pass in 4 files
  • pnpm lint — exits 0 (pre-existing warnings only)

- Add vitest as a dev dependency with a test script; the existing
  vitest test files (tax calculators, sankey transform) were never
  runnable because no test runner was installed
- Add vitest.config.mts to resolve the @/ path alias
- Add GitHub Actions workflow running tests and lint on pushes to
  main and on all pull requests
@xrendan
xrendan merged commit 72289e1 into main Sep 1, 2026
2 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.

1 participant