ci: update e2e workflow for Vite migration

- Change workspace from apps/app to apps/ui
- Update env vars from NEXT_PUBLIC_* to VITE_*
- Update artifact paths for playwright reports

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Kacper
2025-12-17 20:46:55 +01:00
parent 96b941b008
commit c20b224f30

View File

@@ -45,7 +45,7 @@ jobs:
- name: Install Playwright browsers - name: Install Playwright browsers
run: npx playwright install --with-deps chromium run: npx playwright install --with-deps chromium
working-directory: apps/app working-directory: apps/ui
- name: Build server - name: Build server
run: npm run build --workspace=apps/server run: npm run build --workspace=apps/server
@@ -71,20 +71,20 @@ jobs:
exit 1 exit 1
- name: Run E2E tests - name: Run E2E tests
# Playwright automatically starts the Next.js frontend via webServer config # Playwright automatically starts the Vite frontend via webServer config
# (see apps/app/playwright.config.ts) - no need to start it manually # (see apps/ui/playwright.config.ts) - no need to start it manually
run: npm run test --workspace=apps/app run: npm run test --workspace=apps/ui
env: env:
CI: true CI: true
NEXT_PUBLIC_SERVER_URL: http://localhost:3008 VITE_SERVER_URL: http://localhost:3008
NEXT_PUBLIC_SKIP_SETUP: "true" VITE_SKIP_SETUP: "true"
- name: Upload Playwright report - name: Upload Playwright report
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
if: always() if: always()
with: with:
name: playwright-report name: playwright-report
path: apps/app/playwright-report/ path: apps/ui/playwright-report/
retention-days: 7 retention-days: 7
- name: Upload test results - name: Upload test results
@@ -92,5 +92,5 @@ jobs:
if: failure() if: failure()
with: with:
name: test-results name: test-results
path: apps/app/test-results/ path: apps/ui/test-results/
retention-days: 7 retention-days: 7