Skip to content

Playwright Tests

Playwright Tests #117

Workflow file for this run

name: Playwright Tests
on: deployment_status
jobs:
e2e:
if: github.event.deployment_status.state == 'success' && github.event.deployment_status.environment != 'production'
timeout-minutes: 60
runs-on: ubuntu-latest
env:
DATABASE_URL: https://www.test.com/
NEXTAUTH_SECRET: test
NEXTAUTH_URL: https://www.test.com/
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
BASE_URL: ${{ github.event.deployment_status.target_url }}
VERCEL_ENV: ${{ github.event.deployment_status.environment }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '18.x'
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
env:
BASE_URL: ${{ github.event.deployment_status.target_url }}
- uses: actions/upload-artifact@v2
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30