name: E2E Tests on: workflow_call: jobs: build: name: Run E2E Tests runs-on: ubuntu-latest timeout-minutes: 60 steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: 20 - name: Install Docker Compose run: sudo apt-get update && sudo apt-get install -y docker-compose - name: Install dependencies run: npm install -g pnpm && pnpm install - name: Build Formricks JS package run: pnpm build --filter=js - name: Build Formbricks Image & Run run: docker-compose up -d - name: Install Playwright Browsers run: pnpm exec playwright install --with-deps - name: Run Playwright tests run: pnpm test:e2e - uses: actions/upload-artifact@v3 if: always() with: name: playwright-report path: playwright-report/ retention-days: 30