31
31
required : false
32
32
type : string
33
33
ignore_test_status :
34
- description : " If true, ignore test success or failure, never set the commit status, and always upload screenshots."
34
+ description : " If true, ignore test success or failure, and always upload screenshots."
35
35
required : false
36
36
type : boolean
37
+ skip_commit_status :
38
+ description : " If true, skip the commit status."
39
+ required : false
40
+ type : boolean
41
+ token :
42
+ description : " A GitHub token used to set commit status."
43
+ required : false
44
+ type : string
37
45
schedule :
38
46
# Runs every night at 2am PST / 10am UTC, testing against the main branch.
39
47
- cron : ' 0 10 * * *'
@@ -138,12 +146,13 @@ jobs:
138
146
ref : ${{ needs.compute-ref.outputs.REF }}
139
147
140
148
- name : Set commit status to pending
141
- if : ${{ inputs.ignore_test_status == false }}
149
+ if : ${{ inputs.skip_test_status == false }}
142
150
uses : ./.github/workflows/custom-actions/set-commit-status
143
151
with :
144
152
context : Selenium / Build
153
+ job_name : ' Pre-build Player'
145
154
state : pending
146
- token : ${{ secrets.GITHUB_TOKEN }}
155
+ token : ${{ inputs.token || secrets.GITHUB_TOKEN }}
147
156
148
157
- name : Build Player
149
158
run : python3 build/all.py
@@ -182,12 +191,13 @@ jobs:
182
191
- name : Report final commit status
183
192
# Will run on success or failure, but not if the workflow is cancelled
184
193
# or if we were asked to ignore the test status.
185
- if : ${{ (success() || failure()) && inputs.ignore_test_status == false }}
194
+ if : ${{ (success() || failure()) && inputs.skip_commit_status == false }}
186
195
uses : ./.github/workflows/custom-actions/set-commit-status
187
196
with :
188
197
context : Selenium / Build
198
+ job_name : ' Pre-build Player'
189
199
state : ${{ job.status }}
190
- token : ${{ secrets.GITHUB_TOKEN }}
200
+ token : ${{ inputs.token || secrets.GITHUB_TOKEN }}
191
201
192
202
lab-tests :
193
203
# This is a self-hosted runner in a Docker container, with access to our
@@ -206,12 +216,13 @@ jobs:
206
216
ref : ${{ needs.compute-ref.outputs.REF }}
207
217
208
218
- name : Set commit status to pending
209
- if : ${{ inputs.ignore_test_status == false }}
219
+ if : ${{ inputs.skip_commit_status == false }}
210
220
uses : ./.github/workflows/custom-actions/set-commit-status
211
221
with :
212
222
context : Selenium / ${{ matrix.browser }}
223
+ job_name : ${{ matrix.browser }}
213
224
state : pending
214
- token : ${{ secrets.GITHUB_TOKEN }}
225
+ token : ${{ inputs.token || secrets.GITHUB_TOKEN }}
215
226
216
227
- uses : actions/setup-node@v4
217
228
with :
@@ -362,9 +373,10 @@ jobs:
362
373
- name : Report final commit status
363
374
# Will run on success or failure, but not if the workflow is cancelled
364
375
# or if we were asked to ignore the test status.
365
- if : ${{ (success() || failure()) && inputs.ignore_test_status == false }}
376
+ if : ${{ (success() || failure()) && inputs.skip_commit_status == false }}
366
377
uses : ./.github/workflows/custom-actions/set-commit-status
367
378
with :
368
379
context : Selenium / ${{ matrix.browser }}
380
+ job_name : ${{ matrix.browser }}
369
381
state : ${{ job.status }}
370
- token : ${{ secrets.GITHUB_TOKEN }}
382
+ token : ${{ inputs.token || secrets.GITHUB_TOKEN }}
0 commit comments