Skip to content

Commit 0442b8e

Browse files
committed
ci: continue to run other browsers if one fails
Signed-off-by: Saw-jan <[email protected]>
1 parent 885725d commit 0442b8e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.drone.star

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,12 @@ def e2eTests(ctx):
454454
},
455455
],
456456
}]
457-
for browser in BROWSERS:
457+
for idx, browser in enumerate(BROWSERS):
458+
status = ["success"]
459+
if idx > 0:
460+
# allow other browsers step to run even if one fails
461+
status.append("failure")
462+
458463
e2e_test_steps.append({
459464
"name": "e2e-%s" % browser,
460465
"image": OC_CI_NODEJS,
@@ -467,6 +472,9 @@ def e2eTests(ctx):
467472
"path": "/root/.cache/ms-playwright",
468473
},
469474
],
475+
"when": {
476+
"status": status,
477+
},
470478
})
471479

472480
return [{

0 commit comments

Comments
 (0)