1
0
mirror of synced 2026-08-31 19:55:37 +00:00

Compare commits

...

4 Commits

Author SHA1 Message Date
Yury Semikhatsky 6ae0df89fa fix: docker publishing (#851) 2022-03-14 20:22:53 -07:00
Yury Semikhatsky 5faf1b028a chore: update driver to 1.20.0 (#846) 2022-03-14 19:51:14 -07:00
Yury Semikhatsky 0212ebe3df devops: do not cache mvn packages (#848) (#850) 2022-03-14 19:04:43 -07:00
Yury Semikhatsky eee7732f1f chore: set version to 1.20.0 (#845) 2022-03-14 17:14:56 -07:00
14 changed files with 21 additions and 43 deletions
+9 -29
View File
@@ -19,23 +19,17 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: microsoft/playwright-github-action@v1.5.0 - uses: microsoft/playwright-github-action@v1
- name: Set up JDK 1.8 - name: Set up JDK 1.8
uses: actions/setup-java@v2 uses: actions/setup-java@v2
with: with:
distribution: zulu distribution: zulu
java-version: 8 java-version: 8
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Download drivers - name: Download drivers
shell: bash shell: bash
run: scripts/download_driver_for_all_platforms.sh run: scripts/download_driver_for_all_platforms.sh
- name: Build with Maven - name: Build & Install
run: mvn -B package -D skipTests --no-transfer-progress run: mvn -B install -D skipTests --no-transfer-progress
- name: Run tests - name: Run tests
run: mvn test --no-transfer-progress --fail-at-end run: mvn test --no-transfer-progress --fail-at-end
env: env:
@@ -50,7 +44,6 @@ jobs:
env: env:
BROWSER: ${{ matrix.browser }} BROWSER: ${{ matrix.browser }}
run: | run: |
mvn -B install -D skipTests --no-transfer-progress
cd tools/test-spring-boot-starter cd tools/test-spring-boot-starter
mvn package -D skipTests --no-transfer-progress mvn package -D skipTests --no-transfer-progress
java -jar target/test-spring-boot*.jar java -jar target/test-spring-boot*.jar
@@ -70,7 +63,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: microsoft/playwright-github-action@v1.5.0 - uses: microsoft/playwright-github-action@v1
- name: Install Media Pack - name: Install Media Pack
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'
shell: powershell shell: powershell
@@ -80,17 +73,11 @@ jobs:
with: with:
distribution: zulu distribution: zulu
java-version: 8 java-version: 8
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Download drivers - name: Download drivers
shell: bash shell: bash
run: scripts/download_driver_for_all_platforms.sh run: scripts/download_driver_for_all_platforms.sh
- name: Build with Maven - name: Build & Install
run: mvn -B package -D skipTests --no-transfer-progress run: mvn -B install -D skipTests --no-transfer-progress
- name: Run tests - name: Run tests
run: mvn test --no-transfer-progress --fail-at-end run: mvn test --no-transfer-progress --fail-at-end
env: env:
@@ -106,23 +93,17 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: microsoft/playwright-github-action@v1.5.0 - uses: microsoft/playwright-github-action@v1
- name: Set up JDK 17 - name: Set up JDK 17
uses: actions/setup-java@v2 uses: actions/setup-java@v2
with: with:
distribution: adopt distribution: adopt
java-version: 17 java-version: 17
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: m2-${{ hashFiles('**/pom.xml') }}
restore-keys: m2
- name: Download drivers - name: Download drivers
shell: bash shell: bash
run: scripts/download_driver_for_all_platforms.sh run: scripts/download_driver_for_all_platforms.sh
- name: Build with Maven - name: Build & Install
run: mvn -B package -D skipTests --no-transfer-progress run: mvn -B install -D skipTests --no-transfer-progress
- name: Run tests - name: Run tests
run: mvn test --no-transfer-progress --fail-at-end run: mvn test --no-transfer-progress --fail-at-end
env: env:
@@ -132,7 +113,6 @@ jobs:
env: env:
BROWSER: ${{ matrix.browser }} BROWSER: ${{ matrix.browser }}
run: | run: |
mvn -B install -D skipTests --no-transfer-progress
cd tools/test-spring-boot-starter cd tools/test-spring-boot-starter
mvn package -D skipTests --no-transfer-progress mvn package -D skipTests --no-transfer-progress
java -jar target/test-spring-boot*.jar java -jar target/test-spring-boot*.jar
+1 -1
View File
@@ -6,7 +6,7 @@
<parent> <parent>
<groupId>com.microsoft.playwright</groupId> <groupId>com.microsoft.playwright</groupId>
<artifactId>parent-pom</artifactId> <artifactId>parent-pom</artifactId>
<version>1.19.0-SNAPSHOT</version> <version>1.20.0</version>
</parent> </parent>
<artifactId>driver-bundle</artifactId> <artifactId>driver-bundle</artifactId>
+1 -1
View File
@@ -6,7 +6,7 @@
<parent> <parent>
<groupId>com.microsoft.playwright</groupId> <groupId>com.microsoft.playwright</groupId>
<artifactId>parent-pom</artifactId> <artifactId>parent-pom</artifactId>
<version>1.19.0-SNAPSHOT</version> <version>1.20.0</version>
</parent> </parent>
<artifactId>driver</artifactId> <artifactId>driver</artifactId>
+1 -1
View File
@@ -6,7 +6,7 @@
<groupId>org.example</groupId> <groupId>org.example</groupId>
<artifactId>examples</artifactId> <artifactId>examples</artifactId>
<version>1.19.0-SNAPSHOT</version> <version>1.20.0</version>
<name>Playwright Client Examples</name> <name>Playwright Client Examples</name>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+1 -1
View File
@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>com.microsoft.playwright</groupId> <groupId>com.microsoft.playwright</groupId>
<artifactId>parent-pom</artifactId> <artifactId>parent-pom</artifactId>
<version>1.19.0-SNAPSHOT</version> <version>1.20.0</version>
</parent> </parent>
<artifactId>playwright</artifactId> <artifactId>playwright</artifactId>
@@ -497,7 +497,6 @@ public interface BrowserContext extends AutoCloseable {
* <li> {@code "midi"}</li> * <li> {@code "midi"}</li>
* <li> {@code "midi-sysex"} (system-exclusive midi)</li> * <li> {@code "midi-sysex"} (system-exclusive midi)</li>
* <li> {@code "notifications"}</li> * <li> {@code "notifications"}</li>
* <li> {@code "push"}</li>
* <li> {@code "camera"}</li> * <li> {@code "camera"}</li>
* <li> {@code "microphone"}</li> * <li> {@code "microphone"}</li>
* <li> {@code "background-sync"}</li> * <li> {@code "background-sync"}</li>
@@ -524,7 +523,6 @@ public interface BrowserContext extends AutoCloseable {
* <li> {@code "midi"}</li> * <li> {@code "midi"}</li>
* <li> {@code "midi-sysex"} (system-exclusive midi)</li> * <li> {@code "midi-sysex"} (system-exclusive midi)</li>
* <li> {@code "notifications"}</li> * <li> {@code "notifications"}</li>
* <li> {@code "push"}</li>
* <li> {@code "camera"}</li> * <li> {@code "camera"}</li>
* <li> {@code "microphone"}</li> * <li> {@code "microphone"}</li>
* <li> {@code "background-sync"}</li> * <li> {@code "background-sync"}</li>
+1 -1
View File
@@ -6,7 +6,7 @@
<groupId>com.microsoft.playwright</groupId> <groupId>com.microsoft.playwright</groupId>
<artifactId>parent-pom</artifactId> <artifactId>parent-pom</artifactId>
<version>1.19.0-SNAPSHOT</version> <version>1.20.0</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>Playwright Parent Project</name> <name>Playwright Parent Project</name>
<description>Java library to automate Chromium, Firefox and WebKit with a single API. <description>Java library to automate Chromium, Firefox and WebKit with a single API.
+1 -1
View File
@@ -1 +1 @@
1.20.0-beta-1646855573000 1.20.0
+1 -1
View File
@@ -6,7 +6,7 @@
<groupId>com.microsoft.playwright</groupId> <groupId>com.microsoft.playwright</groupId>
<artifactId>api-generator</artifactId> <artifactId>api-generator</artifactId>
<version>1.19.0-SNAPSHOT</version> <version>1.20.0</version>
<name>Playwright - API Generator</name> <name>Playwright - API Generator</name>
<description> <description>
This is an internal module used to generate Java API from the upstream Playwright This is an internal module used to generate Java API from the upstream Playwright
+1 -1
View File
@@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.microsoft.playwright</groupId> <groupId>com.microsoft.playwright</groupId>
<artifactId>test-cli-version</artifactId> <artifactId>test-cli-version</artifactId>
<version>1.19.0-SNAPSHOT</version> <version>1.20.0</version>
<name>Test Playwright Command Line Version</name> <name>Test Playwright Command Line Version</name>
<properties> <properties>
<compiler.version>1.8</compiler.version> <compiler.version>1.8</compiler.version>
+1 -1
View File
@@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.microsoft.playwright</groupId> <groupId>com.microsoft.playwright</groupId>
<artifactId>test-local-installation</artifactId> <artifactId>test-local-installation</artifactId>
<version>1.19.0-SNAPSHOT</version> <version>1.20.0</version>
<name>Test local installation</name> <name>Test local installation</name>
<description>Runs Playwright test suite (copied from playwright module) against locally cached Playwright</description> <description>Runs Playwright test suite (copied from playwright module) against locally cached Playwright</description>
<properties> <properties>
+1 -1
View File
@@ -9,7 +9,7 @@
</parent> </parent>
<groupId>com.microsoft.playwright</groupId> <groupId>com.microsoft.playwright</groupId>
<artifactId>test-spring-boot-starter</artifactId> <artifactId>test-spring-boot-starter</artifactId>
<version>1.19.0-SNAPSHOT</version> <version>1.20.0</version>
<name>Test Playwright With Spring Boot</name> <name>Test Playwright With Spring Boot</name>
<properties> <properties>
<spring.version>2.4.3</spring.version> <spring.version>2.4.3</spring.version>
+1 -1
View File
@@ -6,7 +6,7 @@
<groupId>com.microsoft.playwright</groupId> <groupId>com.microsoft.playwright</groupId>
<artifactId>update-version</artifactId> <artifactId>update-version</artifactId>
<version>1.19.0-SNAPSHOT</version> <version>1.20.0</version>
<name>Playwright - Update Version in Documentation</name> <name>Playwright - Update Version in Documentation</name>
<description> <description>
This is an internal module used to update versions in the documentation based on This is an internal module used to update versions in the documentation based on
+1 -1
View File
@@ -14,7 +14,7 @@ PW_VERSION="${TAG_NAME#v}"
RELEASE_CHANNEL="$1" RELEASE_CHANNEL="$1"
if [[ "${RELEASE_CHANNEL}" == "stable" ]]; then if [[ "${RELEASE_CHANNEL}" == "stable" ]]; then
if [[ ! "${PW_VERSION}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then if [[ ! "${PW_VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "ERROR: cannot publish stable docker with Playwright version '${PW_VERSION}'" echo "ERROR: cannot publish stable docker with Playwright version '${PW_VERSION}'"
exit 1 exit 1
fi fi