Skip to content

Commit a7283af

Browse files
Boshenclaude
andcommitted
fix(ci): unset all VITE_PLUS_* env vars in vite-tests workflow
Instead of unsetting individual VITE_PLUS env vars, unset all of them with a wildcard grep so future vars from setup-vp won't break snapshots. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 3ce03a1 commit a7283af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/vite-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
6464
6565
- name: Run Vite Tests
66-
run: vp run --filter vite-tests test
67-
env:
68-
# Unset to prevent leaking into loadEnv() test snapshots
69-
VITE_PLUS_CLI_BIN: ''
66+
run: |
67+
# Unset all VITE_PLUS_* env vars to prevent leaking into loadEnv() test snapshots
68+
for var in $(env | grep '^VITE_PLUS_' | cut -d= -f1); do unset "$var"; done
69+
vp run --filter vite-tests test

0 commit comments

Comments
 (0)