docs(ci): recommend noble instead of jammy (#32923)

This commit is contained in:
Max Schmitt 2024-10-02 13:12:11 +02:00 committed by GitHub
parent dbf7976dd8
commit 67c37cf813
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 11 deletions

View File

@ -208,7 +208,7 @@ jobs:
name: 'Playwright Tests' name: 'Playwright Tests'
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: mcr.microsoft.com/playwright:v%%VERSION%%-jammy image: mcr.microsoft.com/playwright:v%%VERSION%%-noble
options: --user 1001 options: --user 1001
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -233,7 +233,7 @@ jobs:
name: 'Playwright Tests' name: 'Playwright Tests'
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: mcr.microsoft.com/playwright/python:v%%VERSION%%-jammy image: mcr.microsoft.com/playwright/python:v%%VERSION%%-noble
options: --user 1001 options: --user 1001
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -262,7 +262,7 @@ jobs:
name: 'Playwright Tests' name: 'Playwright Tests'
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: mcr.microsoft.com/playwright/java:v%%VERSION%%-jammy image: mcr.microsoft.com/playwright/java:v%%VERSION%%-noble
options: --user 1001 options: --user 1001
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -288,7 +288,7 @@ jobs:
name: 'Playwright Tests' name: 'Playwright Tests'
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: mcr.microsoft.com/playwright/dotnet:v%%VERSION%%-jammy image: mcr.microsoft.com/playwright/dotnet:v%%VERSION%%-noble
options: --user 1001 options: --user 1001
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -415,7 +415,7 @@ Large test suites can take very long to execute. By executing a preliminary test
This will give you a faster feedback loop and slightly lower CI consumption while working on Pull Requests. This will give you a faster feedback loop and slightly lower CI consumption while working on Pull Requests.
To detect test files affected by your changeset, `--only-changed` analyses your suites' dependency graph. This is a heuristic and might miss tests, so it's important that you always run the full test suite after the preliminary test run. To detect test files affected by your changeset, `--only-changed` analyses your suites' dependency graph. This is a heuristic and might miss tests, so it's important that you always run the full test suite after the preliminary test run.
```yml js title=".github/workflows/playwright.yml" {20-23} ```yml js title=".github/workflows/playwright.yml"
name: Playwright Tests name: Playwright Tests
on: on:
push: push:
@ -766,28 +766,28 @@ Running Playwright on CircleCI is very similar to running on GitHub Actions. In
```yml js ```yml js
executors: executors:
pw-jammy-development: pw-noble-development:
docker: docker:
- image: mcr.microsoft.com/playwright:v%%VERSION%%-noble - image: mcr.microsoft.com/playwright:v%%VERSION%%-noble
``` ```
```yml python ```yml python
executors: executors:
pw-jammy-development: pw-noble-development:
docker: docker:
- image: mcr.microsoft.com/playwright/python:v%%VERSION%%-noble - image: mcr.microsoft.com/playwright/python:v%%VERSION%%-noble
``` ```
```yml java ```yml java
executors: executors:
pw-jammy-development: pw-noble-development:
docker: docker:
- image: mcr.microsoft.com/playwright/java:v%%VERSION%%-noble - image: mcr.microsoft.com/playwright/java:v%%VERSION%%-noble
``` ```
```yml csharp ```yml csharp
executors: executors:
pw-jammy-development: pw-noble-development:
docker: docker:
- image: mcr.microsoft.com/playwright/dotnet:v%%VERSION%%-noble - image: mcr.microsoft.com/playwright/dotnet:v%%VERSION%%-noble
``` ```
@ -801,7 +801,7 @@ Sharding in CircleCI is indexed with 0 which means that you will need to overrid
```yml ```yml
playwright-job-name: playwright-job-name:
executor: pw-jammy-development executor: pw-noble-development
parallelism: 4 parallelism: 4
steps: steps:
- run: SHARD="$((${CIRCLE_NODE_INDEX}+1))"; npx playwright test -- --shard=${SHARD}/${CIRCLE_NODE_TOTAL} - run: SHARD="$((${CIRCLE_NODE_INDEX}+1))"; npx playwright test -- --shard=${SHARD}/${CIRCLE_NODE_TOTAL}
@ -997,7 +997,7 @@ type: docker
steps: steps:
- name: test - name: test
image: mcr.microsoft.com/playwright:v%%VERSION%%-jammy image: mcr.microsoft.com/playwright:v%%VERSION%%-noble
commands: commands:
- npx playwright test - npx playwright test
``` ```