Skip to content

Run reagent-karma-example karma tests in CI - #18

Merged
olecve merged 1 commit into
mainfrom
ci/example-karma
Jul 16, 2026
Merged

Run reagent-karma-example karma tests in CI#18
olecve merged 1 commit into
mainfrom
ci/example-karma

Conversation

@olecve

@olecve olecve commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Adds the karma (headless browser) tests to CI for reagent-karma-example. Node tests already ran; the browser path did not.

  • New test:karma script: shadow-cljs compile karma && karma start --single-run.
  • Folded into the example's ci script, so the existing example CI matrix (npm run ci per example) runs it — no workflow change needed.
  • The karma config already uses ChromeHeadlessNoSandbox (--no-sandbox), and GitHub's ubuntu runners ship Chrome, so it runs headless on CI.

Verified locally: npm run ci runs fmt → lint → compile app → node test → karma (3 browser tests), all green.

e2e (taiko) is intentionally left out for now — it needs the app built + its own Chromium download + a static server, so it's heavier/flakier. Can add later if wanted.

Add a test:karma script (compile the :karma build, then karma
--single-run) and include it in the example's ci script. The karma
config already uses ChromeHeadlessNoSandbox, and the CI matrix runs
npm run ci per example, so the browser tests now run on the ubuntu
runner (which ships Chrome). e2e (taiko) is left out for now.
@olecve
olecve merged commit 68d4704 into main Jul 16, 2026
3 checks passed
@olecve
olecve deleted the ci/example-karma branch July 16, 2026 13:11
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