Skip to content

Expand Piazza Viva demo seed data #1

Expand Piazza Viva demo seed data

Expand Piazza Viva demo seed data #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
quality:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Generate Prisma client
run: npx prisma generate
- name: Lint
run: npm run lint
- name: Type check
run: npm run typecheck
- name: Run unit tests
run: npm run test:run
- name: Build
run: npm run build
env:
NEXT_PUBLIC_BASE_URL: https://piazzaviva.it
e2e:
runs-on: ubuntu-latest
needs: quality
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Generate Prisma client
run: npx prisma generate
- name: Prepare test database
run: npx prisma db push
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Run end-to-end tests
run: npm run test:e2e
env:
CI: true
NEXT_PUBLIC_BASE_URL: http://127.0.0.1:3000
- name: Upload Playwright report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report
if-no-files-found: ignore