mirror of
https://github.com/documenso/documenso.git
synced 2026-07-07 03:24:58 +10:00
960217c78d
- Switch package manager to pnpm 10 via corepack - Add pnpm-workspace.yaml with 54+ shared dependency catalogs - Convert all workspace packages to catalog: and workspace:* protocols - Upgrade Turborepo from 1.x to 2.8.12 (pipeline -> tasks) - Upgrade apps/openpage-api from Next 15 to Next 16 - Update Docker, CI workflows, and GitHub Actions for pnpm - Convert patch file to pnpm native format - Replace deprecated next lint with standalone eslint - Update all documentation references from npm to pnpm - Fix stale dependabot config and documentation paths
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
name: Playwright Tests
|
|
on:
|
|
push:
|
|
branches: ['main']
|
|
pull_request:
|
|
branches: ['main']
|
|
|
|
concurrency:
|
|
group: ci-${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
e2e_tests:
|
|
name: 'E2E Tests'
|
|
timeout-minutes: 60
|
|
runs-on: warp-ubuntu-2204-x64-8x
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Copy env
|
|
run: cp .env.example .env
|
|
|
|
- uses: ./.github/actions/node-install
|
|
|
|
- name: Start Services
|
|
run: pnpm run dx:up
|
|
|
|
- uses: ./.github/actions/playwright-install
|
|
|
|
- name: Create the database
|
|
run: pnpm run prisma:migrate-dev
|
|
|
|
- name: Seed the database
|
|
run: pnpm run prisma:seed
|
|
|
|
- name: Install playwright browsers
|
|
run: pnpm exec playwright install --with-deps
|
|
|
|
- name: Run Playwright tests
|
|
run: pnpm run ci
|
|
env:
|
|
# Needed since we use next start which will set the NODE_ENV to production
|
|
NEXT_PRIVATE_SIGNING_LOCAL_FILE_PATH: './example/cert.p12'
|
|
DANGEROUS_BYPASS_RATE_LIMITS: 'true'
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
if: always()
|
|
with:
|
|
name: test-results
|
|
path: 'packages/app-tests/**/test-results/*'
|
|
retention-days: 7
|
|
env:
|
|
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
|
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
|