Repository navigation
chore(deps): bump junit.version from 5.14.1 to 6.1.3 #3117
This file contains hidden or 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-* | |
| env: | |
| PW_MAX_RETRIES: 3 | |
| jobs: | |
| dev: | |
| timeout-minutes: 90 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [playwright-x64-ubuntu24-64-core, playwright-x64-server2025-64-core, macos-26-xlarge] | |
| browser: [chromium, firefox, webkit] | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: microsoft/playwright/.github/actions/ci-env@main | |
| - name: Set up JDK 1.8 | |
| uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0 | |
| 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 browsers | |
| run: mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="install --with-deps" -f playwright/pom.xml --no-transfer-progress | |
| - name: Run tests | |
| run: $CI_ENV_EXEC mvn test --no-transfer-progress --fail-at-end ${{ runner.os == 'Windows' && '-D junit.parallel.factor=0.25' || '' }} -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: $CI_ENV_EXEC 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: 90 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: playwright-x64-ubuntu24-64-core | |
| browser-channel: chrome | |
| - os: playwright-x64-server2025-64-core | |
| browser-channel: msedge | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: microsoft/playwright/.github/actions/ci-env@main | |
| - name: Install Media Pack | |
| if: runner.os == 'Windows' | |
| shell: powershell | |
| run: Install-WindowsFeature Server-Media-Foundation | |
| - name: Set up JDK 1.8 | |
| uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0 | |
| 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 browsers | |
| run: mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="install --with-deps" -f playwright/pom.xml --no-transfer-progress | |
| - name: Run tests | |
| run: $CI_ENV_EXEC mvn test --no-transfer-progress --fail-at-end ${{ runner.os == 'Windows' && '-D junit.parallel.factor=0.25' || '' }} -D org.slf4j.simpleLogger.showDateTime=true -D org.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss | |
| env: | |
| BROWSER: chromium | |
| BROWSER_CHANNEL: ${{ matrix.browser-channel }} | |
| Java_25: | |
| timeout-minutes: 90 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| browser: [chromium] | |
| runs-on: playwright-x64-ubuntu24-64-core | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: microsoft/playwright/.github/actions/ci-env@main | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0 | |
| with: | |
| distribution: temurin | |
| java-version: 25 | |
| - name: Download drivers | |
| shell: bash | |
| run: scripts/download_driver.sh | |
| - name: Build & Install | |
| run: mvn -B install -D skipTests --no-transfer-progress | |
| # Runs on JDK 25: with JDK 8 the javadoc plugin never uses the module path. | |
| - name: Verify javadoc | |
| run: scripts/verify_javadoc.sh | |
| - name: Install browsers | |
| run: mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="install --with-deps" -f playwright/pom.xml --no-transfer-progress | |
| - name: Run tests | |
| run: $CI_ENV_EXEC 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 |