Skip to content

Commit f65a93a

Browse files
committed
fix(ci): fix test-vp-setup-exe workflow syntax error
Replace dynamic matrix.shell in shell: field with explicit shell values per step. The matrix.shell expression was not recognized by the GitHub Actions YAML parser when used in the shell: context. Use a single job that verifies installation from pwsh, cmd, and bash sequentially.
1 parent 20aab57 commit f65a93a

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

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

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -630,14 +630,10 @@ jobs:
630630
which vp
631631
632632
test-vp-setup-exe:
633-
name: Test vp-setup.exe (${{ matrix.shell }})
633+
name: Test vp-setup.exe (pwsh)
634634
runs-on: windows-latest
635635
permissions:
636636
contents: read
637-
strategy:
638-
fail-fast: false
639-
matrix:
640-
shell: [cmd, pwsh, bash]
641637
steps:
642638
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
643639
- uses: oxc-project/setup-rust@23f38cfb0c04af97a055f76acee94d5be71c7c82 # v1.0.16
@@ -647,7 +643,7 @@ jobs:
647643
run: cargo build --release -p vite_installer
648644

649645
- name: Install via vp-setup.exe (silent)
650-
shell: ${{ matrix.shell }}
646+
shell: pwsh
651647
run: ./target/release/vp-setup.exe -y
652648
env:
653649
VP_VERSION: alpha
@@ -657,7 +653,19 @@ jobs:
657653
run: echo "$USERPROFILE/.vite-plus/bin" >> $GITHUB_PATH
658654

659655
- name: Verify installation
660-
shell: ${{ matrix.shell }}
656+
shell: pwsh
657+
run: |
658+
vp --version
659+
vp --help
660+
661+
- name: Verify installation (cmd)
662+
shell: cmd
663+
run: |
664+
vp --version
665+
vp --help
666+
667+
- name: Verify installation (bash)
668+
shell: bash
661669
run: |
662670
vp --version
663671
vp --help

0 commit comments

Comments
 (0)