Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,19 @@ jobs:
- name: Install Playwright browsers
run: pnpm playwright install --with-deps chromium

- name: Run unit tests
run: pnpm test:unit
- name: Run unit tests with coverage
run: pnpm test:coverage
env:
DATABASE_URL: postgresql://ci:ci@localhost:5432/ci # Dummy for import resolution

- name: Upload coverage report
uses: actions/upload-artifact@v4
if: always()
with:
name: coverage-report
path: coverage/
retention-days: 30

e2e-tests:
name: E2E Tests
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"db:migrate": "drizzle-kit migrate",
"db:studio": "drizzle-kit studio",
"db:seed": "tsx scripts/seed-db.ts",
"svelte:doctor": "svelte-doctor check"
"svelte:doctor": "svelte-doctor check",
"test:coverage": "vitest --run --coverage"
},
"devDependencies": {
"@eslint/compat": "^1.4.0",
Expand All @@ -35,6 +36,7 @@
"@tailwindcss/vite": "^4.1.17",
"@types/node": "^22",
"@vitest/browser-playwright": "^4.0.15",
"@vitest/coverage-v8": "^4.1.4",
"drizzle-kit": "^0.31.8",
"drizzle-orm": "^0.45.0",
"eslint": "^9.39.1",
Expand Down
155 changes: 155 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading