test: add CI smoke tests for Docker, Electron, and Web frontend#339
test: add CI smoke tests for Docker, Electron, and Web frontend#339icebear0828 wants to merge 1 commit intomasterfrom
Conversation
This commit introduces three new smoke tests as requested in issues #133, #134, and #135: - Docker smoke test (`docker-smoke-test.yml`): Verifies the container builds and serves /health cleanly on default (8080) and custom (8090) ports. - Electron smoke test (`electron-smoke-test.yml` + `smoke.test.ts`): Builds and packages the app via electron-builder (dir mode), then validates a clean headless launch with playwright + xvfb. - Web frontend smoke test (`web-smoke-test.yml` + `web-smoke.test.ts`): Starts the server, verifying it hosts the bundled HTML `<div id="app"></div>` and checking Vite build output contains the expected CSS themes. Co-authored-by: icebear0828 <63769498+icebear0828@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Added CI smoke testing workflows for Docker builds, Electron application launch, and Web frontend build.
Implementation details:
.github/workflows/docker-smoke-test.ymlfor testing theDockerfilewith default and overridden ports viadefault.yaml.packages/electron/package.jsonfor testing Electron launches..github/workflows/electron-smoke-test.ymlthat builds all targets, packages for Linux (directory mode), and triggers Vitest over Playwright (packages/electron/__tests__/launch/smoke.test.ts) within anxvfb-runwrapper.DISABLE_NATIVE_TRANSPORT=1to the Playwright launch to prevent TLS crashes without proper native build dependencies..github/workflows/web-smoke-test.ymlandsrc/__tests__/web-smoke.test.tsto assert that compiling and running thedist/index.jsweb server works and outputs Light/Dark CSS rules.package-lock.jsonafter runningnpm install.PR created automatically by Jules for task 8172676823711842359 started by @icebear0828