Skip to content

Commit

Permalink
devops: check that browser versions in README are up to date (microso…
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s authored Aug 12, 2021
1 parent cd3b45a commit ebf9b09
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/verify_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: microsoft/[email protected]
- name: Cache Maven packages
uses: actions/cache@v2
with:
Expand All @@ -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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Playwright is a Java library to automate [Chromium](https://www.chromium.org/Hom

| | Linux | macOS | Windows |
| :--- | :---: | :---: | :---: |
| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> ||||
| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> ||||
| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :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.

Expand Down
4 changes: 1 addition & 3 deletions scripts/update_api.sh → scripts/update_readme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ebf9b09

Please sign in to comment.