Skip to content
Merged
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
35 changes: 24 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version: [latest, alpha]
force-install: [false, true]
runs-on: ${{ matrix.os }}
env:
SETUP_VP_FORCE_INSTALL: ${{ matrix.force-install }}
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6

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

Expand All @@ -35,16 +36,18 @@ jobs:
fail-fast: false
matrix:
node-version: ["22", "24"]
version: [latest, alpha]
force-install: [false, true]
runs-on: ubuntu-latest
env:
SETUP_VP_FORCE_INSTALL: ${{ matrix.force-install }}
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6

- name: Setup Vite+ with Node.js ${{ matrix.node-version }}
- name: Setup Vite+ (${{ matrix.version }}) with Node.js ${{ matrix.node-version }}
uses: ./
with:
version: ${{ matrix.version }}
node-version: ${{ matrix.node-version }}
run-install: false
cache: false
Expand All @@ -63,6 +66,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [latest, alpha]
force-install: [false, true]
runs-on: ubuntu-latest
env:
Expand All @@ -77,10 +81,11 @@ jobs:
echo '{"name":"test-project","private":true}' > package.json
touch pnpm-lock.yaml

- name: Setup Vite+ with pnpm cache
- name: Setup Vite+ (${{ matrix.version }}) with pnpm cache
uses: ./
id: setup
with:
version: ${{ matrix.version }}
run-install: false
cache: true
cache-dependency-path: test-project/pnpm-lock.yaml
Expand All @@ -95,6 +100,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [latest, alpha]
force-install: [false, true]
runs-on: ubuntu-latest
env:
Expand All @@ -109,10 +115,11 @@ jobs:
echo '{"name":"test-project","private":true}' > package.json
echo '{"name":"test-project","lockfileVersion":3}' > package-lock.json

- name: Setup Vite+ with npm cache
- name: Setup Vite+ (${{ matrix.version }}) with npm cache
uses: ./
id: setup
with:
version: ${{ matrix.version }}
run-install: false
cache: true
cache-dependency-path: test-project/package-lock.json
Expand All @@ -127,6 +134,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [latest, alpha]
force-install: [false, true]
runs-on: ubuntu-latest
env:
Expand All @@ -141,10 +149,11 @@ jobs:
echo '{"name":"test-project","private":true}' > package.json
touch yarn.lock

- name: Setup Vite+ with yarn cache
- name: Setup Vite+ (${{ matrix.version }}) with yarn cache
uses: ./
id: setup
with:
version: ${{ matrix.version }}
run-install: false
cache: true
cache-dependency-path: test-project/yarn.lock
Expand All @@ -160,17 +169,18 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version: [latest, alpha]
force-install: [false, true]
runs-on: ${{ matrix.os }}
env:
SETUP_VP_FORCE_INSTALL: ${{ matrix.force-install }}
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6

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

Expand All @@ -182,6 +192,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version: [latest, alpha]
force-install: [false, true]
runs-on: ${{ matrix.os }}
env:
Expand All @@ -196,10 +207,10 @@ jobs:
cd test-project
echo '{"name":"test-project","private":true,"scripts":{"hello":"node -e \"console.log(1+1)\""}}' > package.json

- name: Setup Vite+ with install
- name: Setup Vite+ (${{ matrix.version }}) with install
uses: ./
with:
version: latest
version: ${{ matrix.version }}
run-install: |
- cwd: test-project
cache: false
Expand All @@ -216,16 +227,18 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [latest, alpha]
force-install: [false, true]
runs-on: ubuntu-latest
env:
SETUP_VP_FORCE_INSTALL: ${{ matrix.force-install }}
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6

- name: Setup Vite+ with registry-url
- name: Setup Vite+ (${{ matrix.version }}) with registry-url
uses: ./
with:
version: ${{ matrix.version }}
run-install: false
cache: false
registry-url: "https://npm.pkg.github.com"
Expand Down
Loading