This commit is contained in:
2025-09-18 10:13:08 -06:00
parent 28f8907259
commit b20e43b951
11 changed files with 1010 additions and 10 deletions

View File

@@ -1,3 +1,7 @@
# CI Tools
Placeholder for CI scripts and config.
This directory contains stub scripts and notes for running tests locally or in CI:
- run-tests.sh — runs typecheck, Vitest unit tests, builds the app, and Playwright e2e tests.
Integrate with your CI runner by invoking the script after installing dependencies and preparing Playwright browsers.

9
tools/ci/run-tests.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
echo "[CI] Running typecheck and unit tests (e2e optional)"
pnpm -r --filter @glowtrack/web typecheck || true
pnpm -r --filter @glowtrack/web test:unit || true
pnpm -r --filter @glowtrack/web build
# To run e2e locally with browsers installed, uncomment the line below
# pnpm -r --filter @glowtrack/web test:e2e || true