Skip to content

ci: saving screenshots of failing tests (#964) #1120

ci: saving screenshots of failing tests (#964)

ci: saving screenshots of failing tests (#964) #1120

Workflow file for this run

name: Playwright
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
working-directory: packages/core
run: npm ci
- name: Build Tegel
working-directory: packages/core
run: npm run build
- name: Install Playwright Browsers
working-directory: packages/core
run: npx playwright install --with-deps
- name: Run Playwright tests
working-directory: packages/core
run: npx playwright test
- uses: daun/playwright-report-summary@v3
if: always()
with:
report-file: ./packages/core/results.json
- uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-output
path: ./packages/core/test-results/output ## Folder used in playwright.config.js `outputDir`
retention-days: 1