mirror of
https://github.com/cstaelen/tidarr.git
synced 2026-10-23 03:22:37 -05:00
* refacto wip * move from yarn to pnpm * update api doc * fix pnpm * fix ci * fix express type * fix api * front fixes * fix delete loading
45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
name: Playwright Tests
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ${{ github.ref }}
|
|
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
|
|
|
|
jobs:
|
|
test:
|
|
timeout-minutes: 60
|
|
runs-on: ubuntu-latest
|
|
name: "Playwright Tests"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 24
|
|
cache: 'pnpm'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Install Playwright Browsers
|
|
run: pnpm --filter tidarr-testing exec playwright install --with-deps chromium
|
|
|
|
- name: Run Playwright tests
|
|
env:
|
|
CI: true
|
|
run: pnpm --filter tidarr-testing playwright:test
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
if: failure()
|
|
with:
|
|
name: playwright-report
|
|
path: ./e2e/playwright-report/
|
|
retention-days: 30
|