@@ -29,23 +29,27 @@ jobs:
29
29
matrix :
30
30
target : [ 'selenium-devtools', 'selenium-webdriver' ]
31
31
steps :
32
- - uses : actions/checkout@v2
33
- - uses : actions/setup-java@v1
32
+ - name : Checkout source tree
33
+ uses : actions/checkout@v2
34
+ - name : Setup Java
35
+ uses : actions/setup-java@v1
34
36
with :
35
37
java-version : 11
36
- - uses : ruby/setup-ruby@v1
38
+ - name : Setup Ruby
39
+ uses : ruby/setup-ruby@v1
37
40
with :
38
41
ruby-version : 2.7
39
- - uses : actions/cache@v2
42
+ - name : Cache Bazel artifacts
43
+ uses : actions/cache@v2
40
44
with :
41
45
path : |
42
46
~/.cache/bazel-disk
43
47
~/.cache/bazel-repo
44
48
key : ${{ runner.os }}-bazel-ruby-build-gem-${{ matrix.target }}-${{ hashFiles('**/BUILD.bazel') }}
45
49
restore-keys : |
46
50
${{ runner.os }}-bazel-ruby-build-gem-${{ matrix.target }}-
47
- - uses : ./.github/actions/setup-bazelisk
48
- - uses : ./.github/actions/bazel
51
+ - name : Build Gems
52
+ uses : ./.github/actions/bazel
49
53
with :
50
54
command : build //rb:${{ matrix.target }}
51
55
@@ -58,29 +62,35 @@ jobs:
58
62
matrix :
59
63
target : [ 'chrome-test', 'remote-chrome-test' ]
60
64
steps :
61
- - uses : actions/checkout@v2
62
- - uses : actions/setup-java@v1
65
+ - name : Checkout source tree
66
+ uses : actions/checkout@v2
67
+ - name : Setup Java
68
+ uses : actions/setup-java@v1
63
69
with :
64
70
java-version : 11
65
- - uses : ruby/setup-ruby@v1
71
+ - name : Setup Ruby
72
+ uses : ruby/setup-ruby@v1
66
73
with :
67
74
ruby-version : 2.7
68
- - uses : actions/cache@v2
75
+ - name : Cache Bazel artifacts
76
+ uses : actions/cache@v2
69
77
with :
70
78
path : |
71
79
~/.cache/bazel-disk
72
80
~/.cache/bazel-repo
73
81
key : ${{ runner.os }}-bazel-ruby-${{ matrix.target }}-${{ hashFiles('**/BUILD.bazel') }}
74
82
restore-keys : |
75
83
${{ runner.os }}-bazel-ruby-${{ matrix.target }}-
76
- - uses : ./.github/actions/setup-bazelisk
77
84
- name : Setup Fluxbox
78
85
run : sudo apt-get -y install fluxbox
79
- - uses : ./.github/actions/setup-chrome
80
- - run : Xvfb :99 &
86
+ - name : Setup Chrome
87
+ uses : browser-actions/setup-chrome@latest
88
+ - name : Start XVFB
89
+ run : Xvfb :99 &
81
90
- name : Start Fluxbox
82
91
run : fluxbox -display :99 &
83
- - uses : ./.github/actions/bazel
92
+ - name : Run Chrome tests
93
+ uses : ./.github/actions/bazel
84
94
with :
85
95
command : test --test_output=all //rb:${{ matrix.target }}
86
96
attempts : 3
@@ -96,30 +106,38 @@ jobs:
96
106
matrix :
97
107
target : [ 'firefox-test', 'remote-firefox-test' ]
98
108
steps :
99
- - uses : actions/checkout@v2
100
- - uses : actions/setup-java@v1
109
+ - name : Checkout source tree
110
+ uses : actions/checkout@v2
111
+ - name : Setup Java
112
+ uses : actions/setup-java@v1
101
113
with :
102
114
java-version : 11
103
- - uses : ruby/setup-ruby@v1
115
+ - name : Setup Ruby
116
+ uses : ruby/setup-ruby@v1
104
117
with :
105
118
ruby-version : 2.7
106
- - uses : actions/cache@v2
119
+ - name : Cache Bazel artifacts
120
+ uses : actions/cache@v2
107
121
with :
108
122
path : |
109
123
~/.cache/bazel-disk
110
124
~/.cache/bazel-repo
111
125
key : ${{ runner.os }}-bazel-ruby-${{ matrix.target }}-${{ hashFiles('**/BUILD.bazel') }}
112
126
restore-keys : |
113
127
${{ runner.os }}-bazel-ruby-${{ matrix.target }}-
114
- - uses : ./.github/actions/setup-bazelisk
115
128
- name : Setup Fluxbox
116
129
run : sudo apt-get -y install fluxbox
117
- - name : Setup Firefox and GeckoDriver
118
- uses : ./.github/actions/setup-firefox
119
- - run : Xvfb :99 &
130
+ - name : Setup Firefox
131
+
132
+ with :
133
+ browser : firefox
134
+ version : latest
135
+ - name : Start XVFB
136
+ run : Xvfb :99 &
120
137
- name : Start Fluxbox
121
138
run : fluxbox -display :99 &
122
- - uses : ./.github/actions/bazel
139
+ - name : Run Firefox tests
140
+ uses : ./.github/actions/bazel
123
141
with :
124
142
command : test --test_output=all //rb:${{ matrix.target }}
125
143
attempts : 3
@@ -131,20 +149,23 @@ jobs:
131
149
needs : check_workflow
132
150
runs-on : ubuntu-latest
133
151
steps :
134
- - uses : actions/checkout@v2
135
- - uses : ruby/setup-ruby@v1
152
+ - name : Checkout source tree
153
+ uses : actions/checkout@v2
154
+ - name : Setup Ruby
155
+ uses : ruby/setup-ruby@v1
136
156
with :
137
157
ruby-version : 2.7
138
- - uses : actions/cache@v2
158
+ - name : Cache Bazel artifacts
159
+ uses : actions/cache@v2
139
160
with :
140
161
path : |
141
162
~/.cache/bazel-disk
142
163
~/.cache/bazel-repo
143
164
key : ${{ runner.os }}-bazel-ruby-docs-${{ hashFiles('**/BUILD.bazel') }}
144
165
restore-keys : |
145
166
${{ runner.os }}-bazel-ruby-${{ matrix.target }}-
146
- - uses : ./.github/actions/setup-bazelisk
147
- - uses : ./.github/actions/bazel
167
+ - name : Run docs tests
168
+ uses : ./.github/actions/bazel
148
169
with :
149
170
command : run //rb:docs
150
171
@@ -153,20 +174,23 @@ jobs:
153
174
needs : check_workflow
154
175
runs-on : ubuntu-latest
155
176
steps :
156
- - uses : actions/checkout@v2
157
- - uses : ruby/setup-ruby@v1
177
+ - name : Checkout source tree
178
+ uses : actions/checkout@v2
179
+ - name : Setup Ruby
180
+ uses : ruby/setup-ruby@v1
158
181
with :
159
182
ruby-version : 2.7
160
- - uses : actions/cache@v2
183
+ - name : Cache Bazel artifacts
184
+ uses : actions/cache@v2
161
185
with :
162
186
path : |
163
187
~/.cache/bazel-disk
164
188
~/.cache/bazel-repo
165
189
key : ${{ runner.os }}-bazel-ruby-lint-${{ hashFiles('**/BUILD.bazel') }}
166
190
restore-keys : |
167
191
${{ runner.os }}-bazel-ruby-lint-
168
- - uses : ./.github/actions/setup-bazelisk
169
- - uses : ./.github/actions/bazel
192
+ - name : Run lint tests
193
+ uses : ./.github/actions/bazel
170
194
with :
171
195
command : run //rb:lint
172
196
@@ -179,19 +203,22 @@ jobs:
179
203
matrix :
180
204
ruby : [ '2.7', '3.1' ]
181
205
steps :
182
- - uses : actions/checkout@v2
183
- - uses : ruby/setup-ruby@v1
206
+ - name : Checkout source tree
207
+ uses : actions/checkout@v2
208
+ - name : Setup Ruby
209
+ uses : ruby/setup-ruby@v1
184
210
with :
185
- ruby-version : ${{ matrix.ruby }}
186
- - uses : actions/cache@v2
211
+ ruby-version : 2.7
212
+ - name : Cache Bazel artifacts
213
+ uses : actions/cache@v2
187
214
with :
188
215
path : |
189
216
~/.cache/bazel-disk
190
217
~/.cache/bazel-repo
191
218
key : ${{ runner.os }}-bazel-ruby-unit-test-${{ matrix.ruby }}-${{ hashFiles('**/BUILD.bazel') }}
192
219
restore-keys : |
193
220
${{ runner.os }}-bazel-ruby-unit-test-${{ matrix.ruby }}-
194
- - uses : ./.github/actions/setup-bazelisk
195
- - uses : ./.github/actions/bazel
221
+ - name : Run unit tests
222
+ uses : ./.github/actions/bazel
196
223
with :
197
224
command : test --test_output=all //rb:unit-test
0 commit comments