Skip to content

Commit 8ab3ce6

Browse files
mathe42Sebastian Krüger
andauthored
add latest vite test (#198)
* add latest vite test * fix versions * test mit mapping * better test matrix * test anpassung * build source map --------- Co-authored-by: Sebastian Krüger <[email protected]>
1 parent 4ab3906 commit 8ab3ce6

17 files changed

+1533
-2375
lines changed

.github/workflows/node.js.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v4
15-
- name: setup node and pnpm
16-
uses: dafnik/setup-node-pnpm@v3
17-
- run: pnpm i
18-
- run: pnpm run build
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 22
19+
- run: npm install
20+
- run: npm run build
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Test with Latest Vite
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
schedule:
9+
# Run daily at 2 AM UTC
10+
- cron: '0 2 * * *'
11+
workflow_dispatch:
12+
13+
jobs:
14+
test-vite-versions:
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest]
19+
node-version: [22, 'latest']
20+
vite-version: ['5', '6', '7', 'latest', 'beta', 'alpha']
21+
fail-fast: false
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: ${{matrix.node-version}}
30+
31+
- name: Install root dependencies
32+
run: npm install
33+
34+
- name: Build plugin
35+
run: npm run build
36+
37+
- name: Install test dependencies with specific Vite version
38+
working-directory: test-minimal-example
39+
run: |
40+
npm install vite@${{ matrix.vite-version }} --save-dev
41+
npm install
42+
43+
- name: Install Playwright browsers
44+
working-directory: test-minimal-example
45+
run: npx playwright install chromium
46+
47+
- name: Run tests
48+
working-directory: test-minimal-example
49+
run: npm test
50+
51+
- name: Report Vite version
52+
working-directory: test-minimal-example
53+
run: |
54+
echo "Testing with Vite version:"
55+
npx vite --version

0 commit comments

Comments
 (0)