mirror of
https://github.com/n8n-io/n8n.git
synced 2026-09-24 23:22:38 +08:00
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:
co-authored by
n8n-cat-bot[bot]
Claude Opus 4.7
parent
a17f8e8bbb
commit
08c455cdcc
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user