Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,33 @@ jobs:
run: |
echo "NODE_AUTH_TOKEN is set: ${NODE_AUTH_TOKEN:+yes}"

test-alpine-container:
strategy:
fail-fast: false
matrix:
version: [latest, alpha]
runs-on: ubuntu-latest
container:
image: alpine:3.21
steps:
- name: Install Alpine dependencies
run: apk add --no-cache bash curl gcompat libstdc++

- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6

- name: Setup Vite+ (${{ matrix.version }})
uses: ./
with:
version: ${{ matrix.version }}
run-install: false
cache: false

- name: Verify installation
run: vp --version

- name: Verify vp exec works
run: vp exec node -e "console.log('vp exec works in Alpine')"

Comment on lines +256 to +260
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this Alpine container job, the subsequent run: steps (vp --version and vp exec ...) will use the default Linux shell (bash). Alpine images don't include bash by default, so these steps are likely to fail unless you either install bash in the dependency step or set shell: sh (or job-level defaults.run.shell) for these run: steps.

Copilot uses AI. Check for mistakes.
build:
runs-on: ubuntu-latest
steps:
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,22 @@ steps:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
```

### Alpine Container

Alpine Linux uses musl libc instead of glibc. Install compatibility packages before using the action:

```yaml
jobs:
build:
runs-on: ubuntu-latest
container:
image: alpine:3.21
steps:
- run: apk add --no-cache bash curl gcompat libstdc++
- uses: actions/checkout@v6
- uses: voidzero-dev/setup-vp@v1
```

Comment on lines +113 to +128
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR description says the Alpine example requires apk add bash curl gcompat libstdc++, but both the README snippet and the CI job only install curl gcompat libstdc++. Either add bash to the documented/CI dependency list, or update the PR description (and ensure the installer really works under sh without bash).

Copilot uses AI. Check for mistakes.
### Matrix Testing with Multiple Node.js Versions

```yaml
Expand Down
Loading
Loading