ci(playwright): use playwright official docker container

This commit is contained in:
taroj1205 2025-06-22 14:05:12 +12:00
parent f9395041e1
commit c5e78d4374
No known key found for this signature in database
GPG key ID: 0FCB6CFFE0981AB7

View file

@ -124,6 +124,9 @@ jobs:
needs: [check_changes, setup]
if: ${{ needs.check_changes.outputs.exists == 'true' }}
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.53.0-noble
options: --user 1001
steps:
- uses: actions/checkout@v4
with:
@ -160,16 +163,6 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
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
run: pnpm exec turbo run test:playwright
timeout-minutes: 10