Skip to content

Commit 8f70ce3

Browse files
committed
test: verify env file is POSIX-compatible (dash)
1 parent feefa31 commit 8f70ce3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,15 @@ jobs:
250250
vp --version
251251
vp -h
252252
253+
- name: Verify env file is POSIX-compatible (dash)
254+
if: runner.os == 'Linux'
255+
shell: sh
256+
run: |
257+
# On Ubuntu, /bin/sh is dash. `sh -n` does syntax-only check.
258+
# This catches Zsh-specific syntax that would break desktop login.
259+
sh -n "$HOME/.vite-plus/env"
260+
echo "env file parses successfully under $(readlink -f /bin/sh)"
261+
253262
- name: Run vp check
254263
run: vp check
255264

0 commit comments

Comments
 (0)