Skip to content
Merged
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
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ jobs:
- name: Run Linter
run: npm run lint

# - name: Verify Supabase Types
# run: |
# npx supabase start
# npm run generate-types
# git diff --exit-code src/integrations/supabase/types.ts || (echo "Supabase types are outdated. Please run 'npm run generate-types' locally and commit." && exit 1)

- name: Run Tests with Coverage
run: npx vitest run --coverage
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ dist/
.env
playwright-report/
test-results/
gsoc-2026-issues/
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"preview": "vite preview",
"test": "vitest run",
"test:watch": "vitest",
"typecheck": "tsc -p tsconfig.app.json --noEmit"
"typecheck": "tsc -p tsconfig.app.json --noEmit",
"generate-types": "supabase gen types typescript --local > src/integrations/supabase/types.ts"
},
"dependencies": {
"@hookform/resolvers": "^3.10.0",
Expand Down
9 changes: 9 additions & 0 deletions src/integrations/supabase/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export type Json =
| string
| number
| boolean
| null
| { [key: string]: Json | undefined }
| Json[]

export type Database = any;
1 change: 1 addition & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import path from "path";
export default defineConfig({
plugins: [react()],
test: {
testTimeout: 10000,
coverage: {
provider: "v8",
reporter: ["text", "json", "html"],
Expand Down
Loading