docs(ci): updated language ports container images (#22852)

Co-authored-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
Ricardo Melo Joia 2023-05-08 11:58:38 +01:00 committed by GitHub
parent 9771b1ee74
commit 1f209204cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,7 +194,7 @@ jobs:
name: 'Playwright Tests' name: 'Playwright Tests'
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: mcr.microsoft.com/playwright:v1.34.0-jammy image: mcr.microsoft.com/playwright/python:v1.34.0-jammy
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python - name: Set up Python
@ -206,8 +206,6 @@ jobs:
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -r local-requirements.txt pip install -r local-requirements.txt
pip install -e . pip install -e .
- name: Ensure browsers are installed
run: python -m playwright install --with-deps
- name: Run your tests - name: Run your tests
run: pytest run: pytest
``` ```
@ -218,7 +216,7 @@ jobs:
name: 'Playwright Tests' name: 'Playwright Tests'
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: mcr.microsoft.com/playwright:v1.34.0-jammy image: mcr.microsoft.com/playwright/java:v1.34.0-jammy
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/setup-java@v3 - uses: actions/setup-java@v3
@ -227,8 +225,6 @@ jobs:
java-version: '17' java-version: '17'
- name: Build & Install - name: Build & Install
run: mvn -B install -D skipTests --no-transfer-progress run: mvn -B install -D skipTests --no-transfer-progress
- name: Install Playwright
run: mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="install --with-deps"
- name: Run tests - name: Run tests
run: mvn test run: mvn test
``` ```
@ -239,7 +235,7 @@ jobs:
name: 'Playwright Tests' name: 'Playwright Tests'
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: mcr.microsoft.com/playwright:v1.34.0-jammy image: mcr.microsoft.com/playwright/dotnet:v1.34.0-jammy
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Setup dotnet - name: Setup dotnet
@ -247,8 +243,6 @@ jobs:
with: with:
dotnet-version: 6.0.x dotnet-version: 6.0.x
- run: dotnet build - run: dotnet build
- name: Ensure browsers are installed
run: pwsh bin\Debug\net6.0\playwright.ps1 install --with-deps
- name: Run your tests - name: Run your tests
run: dotnet test run: dotnet test
``` ```
@ -348,7 +342,7 @@ jobs:
inputs: inputs:
searchFolder: 'my-e2e-tests/test-results' searchFolder: 'my-e2e-tests/test-results'
testResultsFormat: 'JUnit' testResultsFormat: 'JUnit'
testResultsFiles: 'e2e-junit-results.xml' testResultsFiles: 'e2e-junit-results.xml'
mergeTestResults: true mergeTestResults: true
failTaskOnFailedTests: true failTaskOnFailedTests: true
testRunTitle: 'My End-To-End Tests' testRunTitle: 'My End-To-End Tests'
@ -393,7 +387,7 @@ Sharding in CircleCI is indexed with 0 which means that you will need to overrid
executor: pw-jammy-development executor: pw-jammy-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}
``` ```
### Jenkins ### Jenkins