35 lines
818 B
YAML
35 lines
818 B
YAML
name: UI Testing (Playwright)
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- develop
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- develop
|
|
jobs:
|
|
test:
|
|
timeout-minutes: 30
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: lts/*
|
|
- run: npm ci
|
|
working-directory: ./src
|
|
- run: npm run build --if-present
|
|
working-directory: ./src
|
|
- name: Install Playwright Browsers
|
|
run: npx playwright install --with-deps
|
|
working-directory: ./src
|
|
- name: Run Playwright tests
|
|
run: npm test
|
|
working-directory: ./src
|
|
- uses: actions/upload-artifact@v4
|
|
if: ${{ !cancelled() }}
|
|
with:
|
|
name: playwright-report
|
|
path: playwright-report/
|
|
retention-days: 30
|