diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml new file mode 100644 index 00000000..c7b2be16 --- /dev/null +++ b/.github/workflows/playwright.yml @@ -0,0 +1,49 @@ +name: Playwright Tests + +on: + pull_request: +jobs: + test: + name: 'Playwright Tests' + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' + + - name: Set up pnpm + uses: pnpm/action-setup@v2 + with: + version: 9.4.0 + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Install Playwright browsers + run: npx playwright install chromium + + - name: Run Playwright tests with supabase + run: pnpm test:e2e:supabase + + - name: Upload test results + if: always() + uses: actions/upload-artifact@v4 + with: + name: playwright-report + path: playwright-report/ + retention-days: 30 + + - name: Run Playwright tests without supabase + run: pnpm test:e2e:legacy + + - name: Upload test results + if: always() + uses: actions/upload-artifact@v4 + with: + name: playwright-report + path: playwright-report/ + retention-days: 30 \ No newline at end of file