-
Notifications
You must be signed in to change notification settings - Fork 78
645 lines (577 loc) · 22.8 KB
/
Copy pathvalidation.yml
File metadata and controls
645 lines (577 loc) · 22.8 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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
name: Validation
on:
schedule:
- cron: '30 23 * * *'
pull_request:
merge_group:
workflow_dispatch:
inputs:
components:
description: 'Space-separated component names (e.g. "grid combo-box"), empty for all'
required: false
default: ''
shards:
description: 'Number of parallel IT shards'
required: false
default: '5'
local-wc-validation:
description: 'Run validation against local web-components checkout'
required: false
default: false
type: boolean
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.merge_group.head_ref || github.ref }}
cancel-in-progress: true
env:
FORK_COUNT: 4
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
outputs:
skip: ${{ steps.skip-ci.outputs.skip }}
components: ${{ steps.components.outputs.elements }}
steps:
- name: Set Maven args
run: |
args="-ntp -B"
[ "${{ runner.debug }}" != "1" ] && args="$args -q"
echo "MAVEN_ARGS=$args" >> "$GITHUB_ENV"
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha || github.event.merge_group.head_sha || github.sha }}
fetch-depth: ${{ github.event_name == 'merge_group' && 50 || 1 }}
- name: Check for skip-ci
id: skip-ci
if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
if [ "${{ github.event_name }}" = "merge_group" ]; then
echo "skip=false" >> "$GITHUB_OUTPUT"
exit 0
fi
if echo "$PR_TITLE" | grep -q '\[skip ci\]'; then
echo "skip=true" >> "$GITHUB_OUTPUT"
else
echo "skip=false" >> "$GITHUB_OUTPUT"
fi
# Cache SVG generator build output across runs unless it's sources change.
- name: Restore charts SVG generator cache
id: svg-cache
if: steps.skip-ci.outputs.skip != 'true'
uses: actions/cache@v5
with:
path: vaadin-charts-flow-parent/vaadin-charts-flow-svg-generator/src/main/resources/META-INF/frontend/generated/
key: ${{ runner.os }}-charts-svg-generator-${{ hashFiles('vaadin-charts-flow-parent/vaadin-charts-flow-svg-generator/**') }}
- name: Setup JDK 21
if: steps.skip-ci.outputs.skip != 'true'
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
cache: 'maven'
- name: Setup Node
if: steps.skip-ci.outputs.skip != 'true'
uses: actions/setup-node@v6
with:
node-version: '24'
- name: Show environment info
if: steps.skip-ci.outputs.skip != 'true'
run: |
java -version
mvn -version
node --version
npm --version
google-chrome --version
chromedriver --version
- name: Install artifacts
if: steps.skip-ci.outputs.skip != 'true'
env:
# On an SVG generator cache hit, skip its npm install/build/test and
# use the restored output instead.
SKIP_SVG_BUILD: ${{ steps.svg-cache.outputs.cache-hit == 'true' }}
run: |
mvn install -Dmaven.test.skip=true -DskipSvgChartsBuild=$SKIP_SVG_BUILD -Drelease -T $FORK_COUNT $MAVEN_ARGS || {
echo "::warning::First attempt failed (Maven multi-thread race). Retrying..."
sleep 15
mvn install -Dmaven.test.skip=true -DskipSvgChartsBuild=$SKIP_SVG_BUILD -Drelease -T $FORK_COUNT $MAVEN_ARGS
}
- name: Archive build output
if: steps.skip-ci.outputs.skip != 'true'
run: |
tar -Pczf build-output.tar.gz \
~/.m2/repository/com/vaadin \
vaadin-charts-flow-parent/vaadin-charts-flow-svg-generator/src/main/resources/META-INF/frontend/generated
- name: Upload build output
if: steps.skip-ci.outputs.skip != 'true'
uses: actions/upload-artifact@v6
with:
name: build-output
path: build-output.tar.gz
retention-days: 1
overwrite: true
- name: Detect modified components
id: components
if: steps.skip-ci.outputs.skip != 'true'
env:
GH_TOKEN: ${{ github.token }}
INPUT_COMPONENTS: ${{ github.event.inputs.components || '' }}
run: |
if [ -n "$INPUT_COMPONENTS" ]; then
# Explicitly specified components are used as-is, without adding
# dependent components
elements="$INPUT_COMPONENTS"
else
changed_files=""
if [ "${{ github.event_name }}" = "pull_request" ]; then
pr_number="${{ github.event.pull_request.number }}"
changed_files=$(gh api --paginate "repos/${{ github.repository }}/pulls/$pr_number/files" --jq '.[].filename')
elif [ "${{ github.event_name }}" = "merge_group" ]; then
changed_files=$(git diff --name-only "${{ github.event.merge_group.base_sha }}" "${{ github.event.merge_group.head_sha }}")
fi
mapfile -t files <<< "$changed_files"
elements=$(node scripts/computeModules.js --changed-files -- "${files[@]}")
fi
if [ -n "$elements" ]; then
echo "Running partial validation for: $elements"
else
echo "Running full validation for all components"
fi
echo "elements=$elements" >> "$GITHUB_OUTPUT"
fast-tests:
name: Fast tests (${{ matrix.name }})
needs: build
if: needs.build.outputs.skip != 'true'
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
outputs:
matrix: ${{ steps.shards.outputs.matrix }}
has-tests: ${{ steps.shards.outputs.has-tests }}
unit-failed: ${{ steps.type-failed.outputs.unit }}
wtr-failed: ${{ steps.type-failed.outputs.wtr }}
strategy:
fail-fast: true
matrix:
include:
- name: Unit tests
type: unit
- name: WTR tests
type: wtr
- name: Package WAR
type: war
steps:
- name: Set Maven args
run: |
args="-ntp -B"
[ "${{ runner.debug }}" != "1" ] && args="$args -q"
echo "MAVEN_ARGS=$args" >> "$GITHUB_ENV"
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha || github.event.merge_group.head_sha || github.sha }}
fetch-depth: 1
- name: Setup Node
if: matrix.type != 'unit'
uses: actions/setup-node@v6
with:
node-version: '24'
- name: Checkout web-components
if: matrix.type != 'unit' && github.event_name == 'schedule' || inputs.local-wc-validation
uses: actions/checkout@v6
with:
repository: vaadin/web-components
ref: main
path: web-components
- name: Install web-components
if: matrix.type != 'unit' && github.event_name == 'schedule' || inputs.local-wc-validation
run: yarn install --ignore-engines --ignore-scripts
working-directory: web-components
- name: Configure local web-components
if: matrix.type != 'unit' && github.event_name == 'schedule' || inputs.local-wc-validation
run: echo "LOCAL_WEB_COMPONENTS_PATH=web-components" > .env
- name: npm install
if: matrix.type != 'unit'
run: npm ci --ignore-scripts
- name: Merge ITs
if: matrix.type == 'war'
run: node scripts/mergeITs.js ${{ needs.build.outputs.components }}
- name: Setup JDK 21
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
cache: 'maven'
- name: Install TestBench license
if: env.TB_LICENSE != ''
env:
TB_LICENSE: ${{ secrets.TB_LICENSE }}
run: |
mkdir -p ~/.vaadin
user="${TB_LICENSE%%/*}"
key="${TB_LICENSE#*/}"
echo "{\"username\":\"${user}\",\"proKey\":\"${key}\"}" > ~/.vaadin/proKey
- name: Download build output
uses: actions/download-artifact@v8
with:
name: build-output
- name: Restore build output
run: tar -Pxzf build-output.tar.gz
- name: Run unit tests
if: matrix.type == 'unit'
env:
COMPONENTS: ${{ needs.build.outputs.components }}
run: |
shopt -s nullglob
pl=""
for component in $COMPONENTS; do
for pom in vaadin-$component-flow-parent/*/pom.xml; do
dir=${pom%/pom.xml}
case "$dir" in
*-integration-tests|*-testbench) continue ;;
esac
pl+="${pl:+,}$dir"
done
done
pl_arg=""
if [ -n "$pl" ]; then
echo "Running unit tests for: $pl"
pl_arg="-pl $pl"
fi
mvn test $pl_arg -Drelease -T $FORK_COUNT -Dsurefire.parallel=classes -Dsurefire.threadCount=2 -DskipSvgChartsBuild $MAVEN_ARGS
- name: Upload unit test reports
if: always() && matrix.type == 'unit'
uses: actions/upload-artifact@v6
with:
name: surefire-reports
path: '**/target/surefire-reports/TEST-*.xml'
retention-days: 1
if-no-files-found: ignore
- name: Run WTR tests
if: matrix.type == 'wtr'
run: node scripts/wtr.js ${{ needs.build.outputs.components }}
- name: Upload WTR reports
if: always() && matrix.type == 'wtr'
uses: actions/upload-artifact@v6
with:
name: wtr-reports
path: '**/wtr-results.xml'
retention-days: 1
if-no-files-found: ignore
- name: Package integration-tests WAR
if: matrix.type == 'war'
run: |
mvn package -pl integration-tests \
-Drun-it -Drelease \
-Dvaadin.productionMode -Dvaadin.force.production.build=true \
-Dmaven.test.skip=true -DskipJetty $MAVEN_ARGS
- name: Compile IT test sources
if: matrix.type == 'war'
run: mvn test-compile -pl integration-tests -Drun-it -DskipFrontend -DskipJetty -DskipUnitTests $MAVEN_ARGS
- name: Archive packaged WAR
if: matrix.type == 'war'
run: tar -Pczf integration-tests-war.tar.gz integration-tests/pom.xml integration-tests/target
- name: Upload packaged WAR
if: matrix.type == 'war'
uses: actions/upload-artifact@v6
with:
name: integration-tests-war
path: integration-tests-war.tar.gz
retention-days: 1
overwrite: true
- name: Compute IT shards
if: matrix.type == 'war'
id: shards
env:
SHARDS: ${{ github.event.inputs.shards || '0' }}
TARGET_PER_SHARD: 35
MAX_SHARDS: 10
run: |
mapfile -t its < <(find integration-tests/src/test/java -name '*IT.java' -printf '%P\n' | sed -e 's|/|.|g' -e 's|\.java$||' | sort)
count=${#its[@]}
echo "Found $count IT classes"
if [ "$count" -eq 0 ]; then
echo "has-tests=false" >> "$GITHUB_OUTPUT"
echo 'matrix={"include":[]}' >> "$GITHUB_OUTPUT"
exit 0
fi
n=$SHARDS
if [ "$n" -eq 0 ]; then
n=$(( (count + TARGET_PER_SHARD - 1) / TARGET_PER_SHARD ))
[ "$n" -lt 1 ] && n=1
[ "$n" -gt "$MAX_SHARDS" ] && n=$MAX_SHARDS
fi
if [ "$n" -gt "$count" ]; then n=$count; fi
echo "$n shards for $count classes (~$(( count / n )) per shard)"
declare -a buckets
for i in $(seq 1 $n); do buckets[$i]=""; done
i=1
for t in "${its[@]}"; do
if [ -n "${buckets[$i]}" ]; then buckets[$i]+=","; fi
buckets[$i]+="$t"
i=$((i+1))
[ $i -gt $n ] && i=1
done
json='{"include":['
for k in $(seq 1 $n); do
[ $k -gt 1 ] && json+=','
json+='{"shard":"'"$k"'","tests":"'"${buckets[$k]}"'"}'
done
json+=']}'
echo "$json"
echo "matrix=$json" >> "$GITHUB_OUTPUT"
echo "has-tests=true" >> "$GITHUB_OUTPUT"
- name: Record job type on failure
id: type-failed
if: always() && failure()
run: echo "${{ matrix.type }}=true" >> "$GITHUB_OUTPUT"
its:
name: ITs (${{ matrix.shard }})
needs: [build, fast-tests]
if: needs.fast-tests.outputs.has-tests == 'true'
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: read
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.fast-tests.outputs.matrix) }}
steps:
- name: Set Maven args
run: |
args="-ntp -B"
[ "${{ runner.debug }}" != "1" ] && args="$args -q"
echo "MAVEN_ARGS=$args" >> "$GITHUB_ENV"
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha || github.event.merge_group.head_sha || github.sha }}
fetch-depth: 1
- name: Setup JDK 21
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
cache: 'maven'
- name: Install TestBench license
if: env.TB_LICENSE != ''
env:
TB_LICENSE: ${{ secrets.TB_LICENSE }}
run: |
mkdir -p ~/.vaadin
user="${TB_LICENSE%%/*}"
key="${TB_LICENSE#*/}"
echo "{\"username\":\"${user}\",\"proKey\":\"${key}\"}" > ~/.vaadin/proKey
- name: Download build output
uses: actions/download-artifact@v8
with:
name: build-output
- name: Restore build output
run: tar -Pxzf build-output.tar.gz
- name: Download packaged WAR
uses: actions/download-artifact@v8
with:
name: integration-tests-war
- name: Restore packaged WAR
run: tar -Pxzf integration-tests-war.tar.gz
- name: Run integration tests (shard ${{ matrix.shard }})
env:
SHARD_TESTS: ${{ matrix.tests }}
run: |
mvn -pl integration-tests -Drun-it \
jetty:start-war failsafe:integration-test jetty:stop failsafe:verify \
-Dvaadin.productionMode \
-DskipFrontend \
-Dfailsafe.forkCount=$FORK_COUNT \
-Dcom.vaadin.testbench.Parameters.testsInParallel=2 \
-Dfailsafe.rerunFailingTestsCount=2 \
-Dmaven.test.redirectTestOutputToFile=true \
-Dtest.reuseDriver=true \
-Dit.test="$SHARD_TESTS" \
-B
- name: Upload error screenshots
if: failure()
uses: actions/upload-artifact@v6
with:
name: error-screenshots-${{ matrix.shard }}
path: integration-tests/error-screenshots/
retention-days: 5
if-no-files-found: ignore
- name: Upload failsafe reports
if: always()
uses: actions/upload-artifact@v6
with:
name: failsafe-reports-${{ matrix.shard }}
path: integration-tests/target/failsafe-reports/
retention-days: 1
if-no-files-found: ignore
results:
name: Validation result
needs: [build, fast-tests, its]
if: always()
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
actions: write
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha || github.event.merge_group.head_sha || github.sha }}
fetch-depth: 1
- uses: actions/download-artifact@v8
continue-on-error: true
with:
name: surefire-reports
path: surefire-reports
- uses: actions/download-artifact@v8
continue-on-error: true
with:
pattern: failsafe-reports-*
merge-multiple: true
path: failsafe-reports
- uses: actions/download-artifact@v8
continue-on-error: true
with:
name: wtr-reports
path: wtr-reports
- name: Remove passing test reports
run: |
# Detect real failures via testsuite attributes (flaky retries leave
# <flakyError> tags but keep failures="0" errors="0" on the suite).
has_failures=false
for dir in surefire-reports failsafe-reports wtr-reports; do
[ -d "$dir" ] || continue
if find "$dir" -name '*.xml' | xargs grep -lE 'failures="[1-9]|errors="[1-9]' 2>/dev/null | grep -q .; then
has_failures=true
break
fi
done
echo "has_failures=$has_failures" >> $GITHUB_ENV
# Red build: keep only failing reports so dorny focuses on failures.
# Green build: keep all reports so every suite shows as passed.
if [ "$has_failures" = "true" ]; then
for dir in surefire-reports failsafe-reports wtr-reports; do
[ -d "$dir" ] || continue
find "$dir" -name '*.xml' | while read -r f; do
grep -qE 'failures="[1-9]|errors="[1-9]' "$f" || rm -f "$f"
done
done
fi
- name: Check for unit test reports
id: unit-check
run: |
count=$(find surefire-reports -name 'TEST-*.xml' 2>/dev/null | wc -l | tr -d ' ')
echo "count=$count" >> $GITHUB_OUTPUT
- name: Unit Tests header
if: steps.unit-check.outputs.count != '0' && (needs.fast-tests.outputs.unit-failed != 'true' || env.has_failures == 'true')
run: echo "## Unit Tests" >> $GITHUB_STEP_SUMMARY
- name: Publish unit test results
id: unit-dorny
if: steps.unit-check.outputs.count != '0' && (needs.fast-tests.outputs.unit-failed != 'true' || env.has_failures == 'true')
uses: dorny/test-reporter@a43b3a5f7366b97d083190328d2c652e1a8b6aa2
with:
name: Unit Tests
path: surefire-reports/**/TEST-*.xml
reporter: java-junit
list-tests: ${{ env.has_failures == 'true' && 'failed' || 'all' }}
list-suites: ${{ env.has_failures == 'true' && 'failed' || 'all' }}
fail-on-error: 'false'
- name: Unit test compilation error
if: needs.fast-tests.outputs.unit-failed == 'true' && env.has_failures != 'true'
run: |
echo ":x: Unit tests compilation failed. Check the **Unit tests** job for details." >> $GITHUB_STEP_SUMMARY
- name: Check for IT reports
id: it-check
run: |
count=$(find failsafe-reports -name 'TEST-*.xml' 2>/dev/null | wc -l | tr -d ' ')
echo "count=$count" >> $GITHUB_OUTPUT
- name: Integration Tests header
if: steps.it-check.outputs.count != '0' && (needs.fast-tests.result == 'success' || env.has_failures == 'true')
run: echo "## Integration Tests" >> $GITHUB_STEP_SUMMARY
- name: Publish integration test results
id: it-dorny
if: steps.it-check.outputs.count != '0' && (needs.fast-tests.result == 'success' || env.has_failures == 'true')
uses: dorny/test-reporter@a43b3a5f7366b97d083190328d2c652e1a8b6aa2
with:
name: Integration Tests
path: failsafe-reports/TEST-*.xml
reporter: java-junit
list-tests: ${{ env.has_failures == 'true' && 'failed' || 'all' }}
list-suites: ${{ env.has_failures == 'true' && 'failed' || 'all' }}
fail-on-error: 'false'
- name: Check for WTR reports
id: wtr-check
run: |
count=$(find wtr-reports -name 'wtr-results.xml' 2>/dev/null | wc -l | tr -d ' ')
echo "count=$count" >> $GITHUB_OUTPUT
- name: WTR Tests header
if: steps.wtr-check.outputs.count != '0' && (needs.fast-tests.result == 'success' || needs.fast-tests.outputs.wtr-failed == 'true')
run: echo "## WTR Tests" >> $GITHUB_STEP_SUMMARY
- name: Publish WTR results
id: wtr-dorny
if: steps.wtr-check.outputs.count != '0' && (needs.fast-tests.result == 'success' || needs.fast-tests.outputs.wtr-failed == 'true')
uses: dorny/test-reporter@a43b3a5f7366b97d083190328d2c652e1a8b6aa2
with:
name: WTR Tests
path: wtr-reports/**/wtr-results.xml
reporter: java-junit
list-tests: ${{ env.has_failures == 'true' && 'failed' || 'all' }}
list-suites: ${{ env.has_failures == 'true' && 'failed' || 'all' }}
fail-on-error: 'false'
- name: WTR setup error
if: steps.wtr-check.outputs.count == '0' && needs.fast-tests.outputs.wtr-failed == 'true'
run: |
echo ":x: WTR tests did not produce results. Check the **WTR tests** job for details." >> $GITHUB_STEP_SUMMARY
- uses: actions/download-artifact@v8
if: needs.its.result != 'success'
continue-on-error: true
with:
pattern: error-screenshots-*
merge-multiple: true
path: error-screenshots
- name: Upload merged error screenshots
if: needs.its.result != 'success'
uses: actions/upload-artifact@v6
with:
name: error-screenshots
path: error-screenshots/
retention-days: 5
if-no-files-found: ignore
- name: Delete intermediate artifacts
if: always()
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
RUN_ID: ${{ github.run_id }}
run: |
gh api --paginate "repos/$GH_REPO/actions/runs/$RUN_ID/artifacts" \
--jq '.artifacts[] | select(
(.name | startswith("error-screenshots-")) or
(.name | startswith("failsafe-reports-")) or
.name == "wtr-reports" or
.name == "surefire-reports" or
.name == "build-output" or
.name == "integration-tests-war"
) | "\(.id) \(.name)"' \
| while read -r id name; do
echo "Deleting artifact $name (id=$id)"
gh api -X DELETE "repos/$GH_REPO/actions/artifacts/$id" || true
done
- name: Fail if any job or test failed
if: always()
run: |
failed=false
# Job-level failures (build/setup/compile/packaging/infra).
# Skipped is OK: skip-ci skips fast-tests/its, empty builds skip its.
for r in "${{ needs.build.result }}" "${{ needs.fast-tests.result }}" "${{ needs.its.result }}"; do
[[ "$r" == "failure" || "$r" == "cancelled" ]] && failed=true
done
# Actual test failures captured in the published reports.
[[ "${{ steps.unit-dorny.outputs.conclusion }}" == "failure" ]] && failed=true
[[ "${{ steps.wtr-dorny.outputs.conclusion }}" == "failure" ]] && failed=true
[[ "${{ steps.it-dorny.outputs.conclusion }}" == "failure" ]] && failed=true
[[ "$failed" == "true" ]] && exit 1 || exit 0