Skip to content

Commit d208a03

Browse files
committed
fix(ci): gate --changed-files with --only-changes via bash array (PR-only)
1 parent 03b2bbe commit d208a03

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,9 @@ jobs:
267267
# Coverage-based test selection in SHADOW mode on PRs: the selector
268268
# prints what it WOULD run, but the full suite still runs (no
269269
# --select-enforce). Enforcement is a separate, later change.
270-
SELECT=""
271-
[ "${{ github.event_name }}" = "pull_request" ] && SELECT="--only-changes"
272-
/bin/bash mfc.sh test -v --max-attempts 3 -j $(nproc) $SELECT --changed-files "$CHANGED_FILES" $TEST_ALL $TEST_PCT $PRECISION
270+
SELECT=()
271+
[ "${{ github.event_name }}" = "pull_request" ] && SELECT=(--only-changes --changed-files "$CHANGED_FILES")
272+
/bin/bash mfc.sh test -v --max-attempts 3 -j $(nproc) "${SELECT[@]}" $TEST_ALL $TEST_PCT $PRECISION
273273
env:
274274
TEST_ALL: ${{ matrix.mpi == 'mpi' && '--test-all' || '' }}
275275
TEST_PCT: ${{ matrix.debug == 'reldebug' && '-% 20' || '' }}

0 commit comments

Comments
 (0)