diff --git a/.github/workflows/verify_api.yml b/.github/workflows/verify_api.yml index 504203ea..ef30dad7 100644 --- a/.github/workflows/verify_api.yml +++ b/.github/workflows/verify_api.yml @@ -22,6 +22,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: microsoft/playwright-github-action@v1.5.0 - name: Cache Maven packages uses: actions/cache@v2 with: @@ -32,10 +33,12 @@ jobs: run: scripts/download_driver_for_all_platforms.sh - name: Regenerate APIs run: scripts/generate_api.sh + - name: Update browser versions in README + run: scripts/update_readme.sh - name: Verify API is up to date run: | if [[ -n $(git status -s) ]]; then - echo "ERROR: generated interfaces differ from the current sources:" + echo "ERROR: generated interfaces/docs differ from the current sources:" git diff exit 1 fi diff --git a/README.md b/README.md index 98da7354..732973fb 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,9 @@ Playwright is a Java library to automate [Chromium](https://www.chromium.org/Hom | | Linux | macOS | Windows | | :--- | :---: | :---: | :---: | -| Chromium 93.0.4576.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: | -| WebKit 14.2 | ✅ | ✅ | ✅ | -| Firefox 90.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: | +| Chromium 94.0.4595.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: | +| WebKit 15.0 | ✅ | ✅ | ✅ | +| Firefox 91.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: | Headless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/java/docs/next/intro/#system-requirements) for details. diff --git a/scripts/update_api.sh b/scripts/update_readme.sh similarity index 78% rename from scripts/update_api.sh rename to scripts/update_readme.sh index 74db9e57..f041292a 100755 --- a/scripts/update_api.sh +++ b/scripts/update_readme.sh @@ -7,10 +7,8 @@ trap "cd $(pwd -P)" EXIT cd "$(dirname $0)/.." -./scripts/generate_api.sh - # Built from source and do local install. -mvn clean install --no-transfer-progress -D skipTests +mvn install --no-transfer-progress -D skipTests echo "Updating browser versions in README.md" mvn compile exec:java --f ./tools/update-docs-version -D exec.mainClass=com.microsoft.playwright.tools.UpdateBrowserVersions