mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
refactor(ci): update CI pipeline to use Playwright container and upload test reports
This commit is contained in:
parent
45084f80ae
commit
15ce1c7be6
2 changed files with 12 additions and 10 deletions
21
.github/workflows/ci-pipeline.yml
vendored
21
.github/workflows/ci-pipeline.yml
vendored
|
@ -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]
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
"Otero",
|
||||
"patreon",
|
||||
"Pdzly",
|
||||
"pwuser",
|
||||
"Ribaric",
|
||||
"securtiy",
|
||||
"taroj",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue