Skip to content

chore(deps): update dependency @playwright/test to v1.47.1 (#168) #1019

chore(deps): update dependency @playwright/test to v1.47.1 (#168)

chore(deps): update dependency @playwright/test to v1.47.1 (#168) #1019

Workflow file for this run

name: Playwright Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: ⬣ Lint
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
with:
sparse-checkout: |
e2e
biome.json
- name: ⎔ Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: 📥 Download deps
working-directory: ./e2e
run: bun install --ignore-scripts --frozen-lockfile
- name: 🔬 Lint
working-directory: ./e2e
run: bun run lint
typecheck:
name: ʦ TypeScript
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
with:
sparse-checkout: |
e2e
tsconfig.json
- name: ⎔ Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: 📥 Download deps
working-directory: ./e2e
run: bun install --ignore-scripts --frozen-lockfile
- name: 🔎 Type check
working-directory: ./e2e
run: bun run type-check
test:
name: 🎭 Playwright Test
timeout-minutes: 60
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
deployments: read
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
with:
sparse-checkout: e2e
- name: ⎔ Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: 📥 Download deps
working-directory: ./e2e
run: bun install --ignore-scripts --frozen-lockfile
- name: 🎭 Install Playwright Browsers
working-directory: ./e2e
run: bunx playwright install --with-deps
- name: ▲ Waiting for 200 from the Vercel Preview
uses: patrickedqvist/[email protected]
if: github.event_name == 'pull_request' && github.ref != 'refs/heads/main'
id: waitForDeploy
with:
token: ${{ secrets.GITHUB_TOKEN }}
max_timeout: 300
- name: 🔬 Run Playwright tests
working-directory: ./e2e
run: bunx playwright test
env:
PLAYWRIGHT_TEST_BASE_URL: ${{ steps.waitForDeploy.outputs.url || 'https://qr-program-manager.vercel.app' }}
- name: 🚚 Upload Test Artifact
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: e2e/playwright-report/
retention-days: 15