ci(frontend): e2e - don't use docker image (#97)
- Followup of https://github.com/stats-organization/github-stats-extended/pull/91 Dependabot does not update the version specified in the container image. Reading the version directly from package.json prevents potential version mismatches.
This commit is contained in:
@@ -62,20 +62,6 @@ jobs:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Use official playwright docker image, which already includes browsers and related system dependencies.
|
||||
# By doing this ci time we can skip the following step:
|
||||
#
|
||||
# ```yml
|
||||
# - name: Install Playwright Browsers
|
||||
# run: pnpm exec playwright install --with-deps
|
||||
# ```
|
||||
#
|
||||
# By doing so job execution time is reduced by ~20s
|
||||
#
|
||||
# @see https://playwright.dev/docs/docker
|
||||
container:
|
||||
image: mcr.microsoft.com/playwright:v1.58.0-noble
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v6
|
||||
@@ -88,6 +74,9 @@ jobs:
|
||||
chmod +x ./vercel-preparation.sh
|
||||
./vercel-preparation.sh
|
||||
|
||||
- name: Install Playwright Browsers
|
||||
run: pnpm exec playwright install --with-deps
|
||||
|
||||
- name: Run Playwright tests
|
||||
run: pnpm --filter frontend run test:e2e
|
||||
|
||||
|
||||
Reference in New Issue
Block a user