test: fix client-certificate tests #2472
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Test | |
on: | |
push: | |
branches: | |
- main | |
- release-* | |
pull_request: | |
branches: | |
- main | |
- release-* | |
jobs: | |
dev: | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
browser: [chromium, firefox, webkit] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: microsoft/playwright-github-action@v1 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: zulu | |
java-version: 8 | |
- name: Download drivers | |
shell: bash | |
run: scripts/download_driver.sh | |
- name: Build & Install | |
run: mvn -B install -D skipTests --no-transfer-progress | |
- name: Run tests | |
run: mvn test --no-transfer-progress --fail-at-end -D org.slf4j.simpleLogger.showDateTime=true -D org.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss | |
env: | |
BROWSER: ${{ matrix.browser }} | |
- name: Run tracing tests w/ sources | |
run: mvn test --no-transfer-progress --fail-at-end --projects=playwright -D test=*TestTracing* -D org.slf4j.simpleLogger.showDateTime=true -D org.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss | |
env: | |
BROWSER: ${{ matrix.browser }} | |
PLAYWRIGHT_JAVA_SRC: src/test/java | |
- name: Test Spring Boot Starter | |
shell: bash | |
env: | |
BROWSER: ${{ matrix.browser }} | |
run: | | |
cd tools/test-spring-boot-starter | |
mvn package -D skipTests --no-transfer-progress | |
java -jar target/test-spring-boot*.jar | |
stable: | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
browser-channel: [chrome] | |
include: | |
- os: windows-latest | |
browser-channel: msedge | |
- os: macos-latest | |
browser-channel: msedge | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: microsoft/playwright-github-action@v1 | |
- name: Install Media Pack | |
if: matrix.os == 'windows-latest' | |
shell: powershell | |
run: Install-WindowsFeature Server-Media-Foundation | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: zulu | |
java-version: 8 | |
- name: Download drivers | |
shell: bash | |
run: scripts/download_driver.sh | |
- name: Build & Install | |
run: mvn -B install -D skipTests --no-transfer-progress | |
- name: Install MS Edge | |
if: matrix.browser-channel == 'msedge' && matrix.os == 'macos-latest' | |
shell: bash | |
run: mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="install msedge" -f playwright/pom.xml | |
- name: Run tests | |
run: mvn test --no-transfer-progress --fail-at-end -D org.slf4j.simpleLogger.showDateTime=true -D org.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss | |
env: | |
BROWSER: chromium | |
BROWSER_CHANNEL: ${{ matrix.browser-channel }} | |
Java_21: | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
browser: [chromium, firefox, webkit] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: microsoft/playwright-github-action@v1 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: adopt | |
java-version: 21 | |
- name: Download drivers | |
shell: bash | |
run: scripts/download_driver.sh | |
- name: Build & Install | |
run: mvn -B install -D skipTests --no-transfer-progress | |
- name: Run tests | |
run: mvn test --no-transfer-progress --fail-at-end | |
env: | |
BROWSER: ${{ matrix.browser }} | |
- name: Test Spring Boot Starter | |
shell: bash | |
env: | |
BROWSER: ${{ matrix.browser }} | |
run: | | |
cd tools/test-spring-boot-starter | |
mvn package -D skipTests --no-transfer-progress | |
java -jar target/test-spring-boot*.jar |