| name: CI - Java | |
| on: | |
| workflow_call: | |
| inputs: | |
| compile-manager: | |
| description: Build Selenium Manager from source instead of downloading the pinned binary | |
| required: false | |
| type: boolean | |
| default: false | |
| workflow_dispatch: | |
| inputs: | |
| compile-manager: | |
| description: Build Selenium Manager from source instead of downloading the pinned binary | |
| required: false | |
| type: boolean | |
| default: false | |
| permissions: | |
| contents: read | |
| packages: read | |
| jobs: | |
| smoke: | |
| name: Smoke Tests | |
| uses: ./.github/workflows/bazel.yml | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [windows, macos] | |
| tag_filters: ["unit,os-sensitive,se-manager,skip-rbe"] | |
| # macOS runners are scarce, so only use for PRs and nightly runs | |
| exclude: | |
| - os: ${{ github.event_name == 'push' && 'macos' || '' }} | |
| include: | |
| # Edge has no linux-arm64 build | |
| - os: ubuntu-24.04-arm | |
| tag_filters: "unit,os-sensitive,se-manager,skip-rbe,-edge" | |
| with: | |
| name: Smoke Tests (${{ matrix.os }}) | |
| os: ${{ matrix.os }} | |
| needs-display: true | |
| rerun-with-debug: true | |
| remote-cache: true | |
| download-artifact-name: targets | |
| run: > | |
| [ -s bazel-targets-java.txt ] || echo //java/... > bazel-targets-java.txt; | |
| ./scripts/github-actions/bazel-test-if-targets.sh | |
| --config=gh-browser | |
| ${{ inputs.compile-manager && '--manager=host' || '' }} | |
| --test_tag_filters=${{ matrix.tag_filters }}${{ matrix.os == 'macos' && github.event_name == 'pull_request' && ',-edge' || '' }} | |
| --target_pattern_file=bazel-targets-java.txt |