mirror of
https://github.com/zen-browser/www.git
synced 2025-07-08 09:20:00 +02:00
ci(playwright): use playwright official docker container
This commit is contained in:
parent
f9395041e1
commit
c5e78d4374
1 changed files with 3 additions and 10 deletions
13
.github/workflows/ci-pipeline.yml
vendored
13
.github/workflows/ci-pipeline.yml
vendored
|
@ -124,6 +124,9 @@ jobs:
|
||||||
needs: [check_changes, setup]
|
needs: [check_changes, setup]
|
||||||
if: ${{ needs.check_changes.outputs.exists == 'true' }}
|
if: ${{ needs.check_changes.outputs.exists == 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: mcr.microsoft.com/playwright:v1.53.0-noble
|
||||||
|
options: --user 1001
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
@ -160,16 +163,6 @@ jobs:
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Cache Playwright Browsers
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: ~/.cache/ms-playwright
|
|
||||||
key: ${{ runner.os }}-playwright-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
||||||
restore-keys: ${{ runner.os }}-playwright-
|
|
||||||
|
|
||||||
- name: Install Playwright Browsers
|
|
||||||
run: pnpm exec playwright install --with-deps
|
|
||||||
|
|
||||||
- name: Run Playwright Tests
|
- name: Run Playwright Tests
|
||||||
run: pnpm exec turbo run test:playwright
|
run: pnpm exec turbo run test:playwright
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue