2024-05-02 15:55:41 +03:00
|
|
|
name: Playwright Tests
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
playwright:
|
|
|
|
timeout-minutes: 60
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-05-05 19:51:14 +03:00
|
|
|
- uses: pnpm/action-setup@v3
|
|
|
|
with:
|
|
|
|
version: 8
|
2024-05-02 15:55:41 +03:00
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
2024-05-05 19:51:14 +03:00
|
|
|
node-version: lts/*
|
2024-05-02 15:55:41 +03:00
|
|
|
cache: "pnpm"
|
2024-05-05 19:51:14 +03:00
|
|
|
cache-dependency-path: |
|
|
|
|
pnpm-lock.yaml
|
2024-05-02 15:55:41 +03:00
|
|
|
- name: Install dependencies
|
|
|
|
run: pnpm install
|
|
|
|
- name: Install Playwright Browsers
|
2024-05-05 20:33:48 +03:00
|
|
|
run: pnpm dlx playwright@1.40.0 install --with-deps chromium
|
2024-05-02 15:55:41 +03:00
|
|
|
- name: Run ubuntu/chrome snapshots
|
2024-05-05 19:51:14 +03:00
|
|
|
run: cd app && pnpm test:e2e
|
2024-05-02 15:55:41 +03:00
|
|
|
env:
|
|
|
|
CI: true
|
|
|
|
- uses: actions/upload-artifact@v3
|
2024-05-05 20:33:48 +03:00
|
|
|
if: ${{ !cancelled() }}
|
2024-05-02 15:55:41 +03:00
|
|
|
with:
|
|
|
|
name: playwright-report
|
|
|
|
path: app/playwright-report/
|
|
|
|
retention-days: 30
|