ci: Add --pass-with-no-tests to the shard E2E run (#31820)

Co-authored-by: n8n-cat-bot[bot] <n8n-cat-bot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
n8n-cat-bot[bot]
2026-06-05 11:48:49 +00:00
committed by GitHub
co-authored by n8n-cat-bot[bot] Claude Opus 4.7
parent a17f8e8bbb
commit 08c455cdcc
+8 -1
View File
@@ -123,8 +123,15 @@ jobs:
- name: Run Tests
run: |
# --pass-with-no-tests makes Playwright exit 0 when the selected specs
# resolve to zero runnable tests. Covers the impact-map vs current-suite
# skew window: a spec the committed coverage map points at may have been
# quarantined (test.skip/fixme) since the map was built, or a capability
# --grep on the test-command may filter every test on a shard. The
# selector is doing the right thing; the run shouldn't treat "nothing
# to run" as failure.
# shellcheck disable=SC2086
$TEST_COMMAND --workers="$WORKERS" $SHARD_ARGS
$TEST_COMMAND --workers="$WORKERS" $SHARD_ARGS --pass-with-no-tests
env:
# Protect args from template injections
TEST_COMMAND: ${{ inputs.test-command }}