Skip to content

Commit d154e82

Browse files
committed
test(ci): add bash verification steps to Windows install test
Add bash shell verification steps to the test-install-ps1 job to ensure the installation works from both PowerShell and Git Bash on Windows.
1 parent 47ea157 commit d154e82

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ jobs:
200200
pnpm bootstrap-cli:ci
201201
if [[ "$RUNNER_OS" == "Windows" ]]; then
202202
echo "$USERPROFILE/.vite-plus-dev/bin" >> $GITHUB_PATH
203+
ls -al $USERPROFILE/.vite-plus-dev/bin
203204
else
204205
echo "$HOME/.vite-plus-dev/bin" >> $GITHUB_PATH
205206
fi

.github/workflows/test-standalone-install.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,3 +223,45 @@ jobs:
223223
$env:Path = "$env:USERPROFILE\.vite-plus\bin;$env:Path"
224224
vp env doctor
225225
vp env run --node 24 -- node -p "process.versions"
226+
227+
- name: Verify installation on bash
228+
shell: bash
229+
working-directory: ${{ runner.temp }}
230+
run: |
231+
echo "PATH: $PATH"
232+
ls -al ~/
233+
234+
vp --version
235+
vp --help
236+
# test new command
237+
vp new create-vite --no-interactive --no-agent -- hello-bash --no-interactive -t vanilla
238+
cd hello-bash && vp run build
239+
240+
- name: Verify bin setup on bash
241+
shell: bash
242+
run: |
243+
# Verify bin directory was created by vp env --setup
244+
BIN_PATH="$HOME/.vite-plus/bin"
245+
ls -al "$BIN_PATH"
246+
if [ ! -d "$BIN_PATH" ]; then
247+
echo "Error: Bin directory not found: $BIN_PATH"
248+
exit 1
249+
fi
250+
251+
# Verify shim executables exist (Windows uses .cmd wrappers)
252+
for shim in node.cmd npm.cmd npx.cmd; do
253+
if [ ! -f "$BIN_PATH/$shim" ]; then
254+
echo "Error: Shim not found: $BIN_PATH/$shim"
255+
exit 1
256+
fi
257+
echo "Found shim: $BIN_PATH/$shim"
258+
done
259+
260+
# Verify vp env doctor works
261+
vp env doctor
262+
vp env run --node 24 -- node -p "process.versions"
263+
264+
which node
265+
which npm
266+
which npx
267+
which vp

0 commit comments

Comments
 (0)