Skip to content

Team management

Team management #27

Workflow file for this run

name: E2E Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
playwright-tests:
timeout-minutes: 60
runs-on: ubuntu-latest
env:
DATABASE_URL: "file:./prod.db"
NEXTAUTH_SECRET: playwright-secret
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Prepare Database with Prisma
run: |
npm run prisma:generate
npm run prisma:migrate-prod
npm run prisma:seed
- name: Build the Application
run: npm run build
- name: Run Playwright tests
run: npm run test:e2e
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: e2e/test-reports
retention-days: 30