refactor(ci): update CI pipeline to use Playwright container and upload test reports

This commit is contained in:
taroj1205 2025-06-22 16:56:14 +12:00
parent 45084f80ae
commit 15ce1c7be6
No known key found for this signature in database
GPG key ID: 0FCB6CFFE0981AB7
2 changed files with 12 additions and 10 deletions

View file

@ -84,6 +84,9 @@ jobs:
needs: [check_changes, build]
if: ${{ needs.check_changes.outputs.exists == 'true' }}
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.52.0-jammy
options: --ipc=host --user pwuser
steps:
- uses: actions/checkout@v4
@ -98,20 +101,18 @@ jobs:
with:
cache-suffix: playwright
- name: Cache Playwright Browsers
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/bun.lock') }}
restore-keys: ${{ runner.os }}-playwright-
- name: Install Playwright Browsers
run: bunx playwright install --with-deps
- name: Run Playwright Tests
run: bunx turbo run test:playwright
timeout-minutes: 10
- name: Upload Playwright Report
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 7
verify:
name: Verify
needs: [check_changes, quality_checks, playwright]

View file

@ -53,6 +53,7 @@
"Otero",
"patreon",
"Pdzly",
"pwuser",
"Ribaric",
"securtiy",
"taroj",