mirror of
https://github.com/cstaelen/shazarr.git
synced 2026-10-22 11:03:22 -05:00
40 lines
897 B
YAML
40 lines
897 B
YAML
name: Playwright Tests
|
|
on:
|
|
push:
|
|
branches-ignore: [ gh-pages ]
|
|
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:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
name: Install pnpm
|
|
with:
|
|
version: 10
|
|
run_install: false
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22.x"
|
|
cache: 'pnpm'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: Run Playwright tests
|
|
run: pnpm run testing:ci
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
if: failure()
|
|
with:
|
|
name: playwright-report
|
|
path: ./testing/playwright-report/
|
|
retention-days: 30
|