Repository navigation
52 lines (49 loc) · 1.57 KB
/
Copy pathci-java.yml
File metadata and controls
52 lines (49 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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
jobs:
browser-tests:
name: Browser Tests
uses: ./.github/workflows/bazel.yml
strategy:
fail-fast: false
matrix:
os: [windows, macos]
# macOS runners are scarce, so only use for PRs and nightly runs
exclude:
- os: ${{ github.event_name == 'push' && 'macos' || '' }}
with:
name: Browser Tests (chrome, ${{ matrix.os }})
os: ${{ matrix.os }}
needs-display: true
rerun-with-debug: 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
--build_tests_only
--keep_going
--flaky_test_attempts 2
--local_test_jobs 1
--skip_incompatible_explicit_targets
--pin_browsers=false
${{ inputs.compile-manager && '--manager=host' || '' }}
--test_env=SE_FORCE_BROWSER_DOWNLOAD=true
--test_env=SE_SKIP_DRIVER_IN_PATH=true
--test_tag_filters=unit,os-sensitive,se-manager
--target_pattern_file=bazel-targets-java.txt