Skip to content

Commit

Permalink
[java] Splitting browser tests per OS and remote only in macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Mar 25, 2024
1 parent a684ab6 commit 39623fa
Showing 1 changed file with 31 additions and 26 deletions.
57 changes: 31 additions & 26 deletions .github/workflows/ci-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,49 @@ on:
workflow_dispatch:

jobs:
browser-tests:
browser-tests-windows:
name: Browser Tests
uses: ./.github/workflows/bazel.yml
strategy:
fail-fast: false
matrix:
include:
- os: windows
with:
name: Browser Tests (chrome, ${{ matrix.os }})
os: ${{ matrix.os }}
browser: chrome
cache-key: java-${{ matrix.os }}-tests
run: |
bazel test //java/test/org/openqa/selenium/chrome:ChromeDriverFunctionalTest ^
//java/test/org/openqa/selenium/federatedcredentialmanagement:FederatedCredentialManagementTest ^
//java/test/org/openqa/selenium/firefox:FirefoxDriverBuilderTest ^
//java/test/org/openqa/selenium/grid/gridui:OverallGridTest ^
//java/test/org/openqa/selenium/grid/router:RemoteWebDriverDownloadTest ^
//java/test/org/openqa/selenium/remote:RemoteWebDriverBuilderTest ^
//java/test/org/openqa/selenium/grid/router:RemoteWebDriverDownloadTest
browser-tests-macos:
name: Browser Tests
uses: ./.github/workflows/bazel.yml
strategy:
fail-fast: false
matrix:
include:
- os: macos
with:
name: Browser Tests (chrome, ${{ matrix.os }})
os: ${{ matrix.os }}
browser: chrome
cache-key: java-${{ matrix.os }}-tests
run: |
if [[ "${{ matrix.os }}" == "windows" ]]; then
bazel test //java/test/org/openqa/selenium/chrome:ChromeDriverFunctionalTest ^
//java/test/org/openqa/selenium/federatedcredentialmanagement:FederatedCredentialManagementTest ^
//java/test/org/openqa/selenium/firefox:FirefoxDriverBuilderTest ^
//java/test/org/openqa/selenium/grid/gridui:OverallGridTest ^
//java/test/org/openqa/selenium/grid/router:RemoteWebDriverDownloadTest ^
//java/test/org/openqa/selenium/remote:RemoteWebDriverBuilderTest ^
//java/test/org/openqa/selenium/grid/router:RemoteWebDriverDownloadTest
else
bazel test //java/test/org/openqa/selenium/chrome:ChromeDriverFunctionalTest-remote \
//java/test/org/openqa/selenium/federatedcredentialmanagement:FederatedCredentialManagementTest \
//java/test/org/openqa/selenium/firefox:FirefoxDriverBuilderTest \
//java/test/org/openqa/selenium/grid/gridui:OverallGridTest \
//java/test/org/openqa/selenium/grid/router:RemoteWebDriverDownloadTest \
//java/test/org/openqa/selenium/remote:RemoteWebDriverBuilderTest \
//java/test/org/openqa/selenium/grid/router:RemoteWebDriverDownloadTest
fi
bazel test //java/test/org/openqa/selenium/chrome:ChromeDriverFunctionalTest-remote \
//java/test/org/openqa/selenium/federatedcredentialmanagement:FederatedCredentialManagementTest \
//java/test/org/openqa/selenium/firefox:FirefoxDriverBuilderTest \
//java/test/org/openqa/selenium/grid/gridui:OverallGridTest \
//java/test/org/openqa/selenium/grid/router:RemoteWebDriverDownloadTest \
//java/test/org/openqa/selenium/remote:RemoteWebDriverBuilderTest \
//java/test/org/openqa/selenium/grid/router:RemoteWebDriverDownloadTest
remote-tests:
name: Remote Tests
Expand All @@ -45,18 +56,12 @@ jobs:
fail-fast: false
matrix:
include:
- os: windows
- os: macos
with:
name: Remote Tests (chrome, ${{ matrix.os }})
os: ${{ matrix.os }}
browser: chrome
cache-key: java-${{ matrix.os }}-remote-tests
run: |
if [[ "${{ matrix.os }}" == "windows" ]]; then
bazel test //java/test/org/openqa/selenium/chrome:ChromeDriverFunctionalTest-remote ^
//java/test/org/openqa/selenium/grid/router:RemoteWebDriverDownloadTest-remote
else
bazel test //java/test/org/openqa/selenium/chrome:ChromeDriverFunctionalTest-remote \
//java/test/org/openqa/selenium/grid/router:RemoteWebDriverDownloadTest-remote
fi
bazel test //java/test/org/openqa/selenium/chrome:ChromeDriverFunctionalTest-remote \
//java/test/org/openqa/selenium/grid/router:RemoteWebDriverDownloadTest-remote

0 comments on commit 39623fa

Please sign in to comment.