Add base tests

This commit is contained in:
MartinBraquet
2025-08-04 10:26:19 +02:00
parent c284983b4b
commit ed515fa3fc
11 changed files with 4041 additions and 20 deletions

View File

@@ -1,4 +1,4 @@
name: Check Next.js
name: CI
on:
push:
@@ -9,8 +9,8 @@ on:
- main
jobs:
build:
name: Build
ci:
name: All
runs-on: ubuntu-latest
steps:
@@ -25,7 +25,23 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build the app
- name: Type check
run: npx tsc --noEmit
- name: Lint
run: npm run lint
- name: Run tests
run: npm run test
- name: Build app
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: npm run build
# Optional: Playwright E2E tests
- name: Install Playwright deps
run: npx playwright install --with-deps
- name: Run E2E tests
run: npx playwright test