forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 1
100 lines (92 loc) · 2.81 KB
/
ci-java.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: CI - Java
on:
workflow_call:
workflow_dispatch:
jobs:
build:
name: Build
uses: ./.github/workflows/bazel.yml
with:
name: Build
cache-key: java
run: bazel build grid
docs:
name: Documentation
needs: build
uses: ./.github/workflows/bazel.yml
with:
name: Documentation
cache-key: java-doc
run: ./go --verbose javadocs
lint:
name: Lint
needs: build
uses: ./.github/workflows/bazel.yml
with:
name: Lint
cache-key: java-lint
run: bazel test --test_tag_filters "lint,-no-lint" //java/...
small-tests:
name: Small Tests
needs: build
uses: ./.github/workflows/bazel.yml
with:
name: Small Tests
cache-key: java-small-tests
run: bazel test --test_size_filters "small" --test_tag_filters "-lint" //java/...
medium-tests:
name: Medium Tests
needs: small-tests
uses: ./.github/workflows/bazel.yml
with:
name: Medium Tests
cache-key: java-medium-tests
run: bazel test --test_size_filters "medium" --test_tag_filters "-lint" --flaky_test_attempts 3 //java/...
browser-tests:
name: Browser Tests
needs: small-tests
uses: ./.github/workflows/bazel.yml
strategy:
fail-fast: false
matrix:
include:
- browser: chrome
browser-version: stable
- browser: firefox
browser-version: latest
- browser: firefox
browser-version: latest-beta
- browser: firefox
browser-version: latest-devedition
with:
name: Browser Tests (${{ matrix.browser }}, ${{ matrix.browser-version }})
browser: ${{ matrix.browser }}
browser-version: ${{ matrix.browser-version }}
cache-key: java-${{ matrix.browser }}-tests
run: >
bazel query "attr(tags, ${{ matrix.browser }}, tests(//java/...)) except attr(tags, 'rc|remote', tests(//java/...))" |
xargs bazel test --flaky_test_attempts 3
remote-tests:
name: Remote Tests
needs: small-tests
uses: ./.github/workflows/bazel.yml
strategy:
fail-fast: false
matrix:
include:
- browser: chrome
browser-version: stable
- browser: firefox
browser-version: latest
- browser: firefox
browser-version: latest-beta
- browser: firefox
browser-version: latest-devedition
with:
name: Remote Tests (${{ matrix.browser }}, ${{ matrix.browser-version }})
browser: ${{ matrix.browser }}
browser-version: ${{ matrix.browser-version }}
cache-key: java-${{ matrix.browser }}-remote-tests
run: >
bazel query "attr(tags, ${{ matrix.browser }}, tests(//java/...)) intersect attr(tags, 'remote', tests(//java/...))" |
xargs bazel test --flaky_test_attempts 3