mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
36 lines
989 B
YAML
36 lines
989 B
YAML
name: E2E
|
|
|
|
on:
|
|
pull_request_target:
|
|
branches: ['**']
|
|
paths-ignore:
|
|
- '**/*.md'
|
|
- 'static/**/*'
|
|
|
|
env:
|
|
VITE_STRIPE_PUBLIC_KEY: ${{ vars.VITE_STRIPE_PUBLIC_KEY }}
|
|
|
|
jobs:
|
|
e2e:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 20
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
- name: Install Playwright Browsers
|
|
run: npx playwright install --with-deps chromium
|
|
- name: E2E Tests
|
|
run: npm run e2e
|
|
- uses: actions/upload-artifact@v4
|
|
if: ${{ !cancelled() }}
|
|
with:
|
|
name: playwright-report
|
|
path: playwright-report/
|
|
retention-days: 7
|