-
Notifications
You must be signed in to change notification settings - Fork 21
102 lines (83 loc) · 2.46 KB
/
test-latest-vite.yml
File metadata and controls
102 lines (83 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Test with Latest Vite
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
# Run daily at 2 AM UTC
- cron: '0 2 * * *'
workflow_dispatch:
jobs:
test-vite-versions:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [22, 'latest']
vite-version: ['5', '6', '7', 'latest', 'beta', 'alpha']
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{matrix.node-version}}
- name: Install root dependencies
run: npm install
- name: Build plugin
run: npm run build
- name: Install test dependencies with specific Vite version
working-directory: test-minimal-example
run: |
npm install vite@${{ matrix.vite-version }} --save-dev
npm install
- name: Install Playwright browsers
working-directory: test-minimal-example
run: npx playwright install chromium firefox
- name: Run tests
working-directory: test-minimal-example
env:
CI: true
run: npm test
- name: Report Vite version
working-directory: test-minimal-example
run: |
echo "Testing with Vite version:"
npx vite --version
test-vite-rolldown:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [22, 'latest']
vite-version: ['latest', 'beta', 'alpha']
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{matrix.node-version}}
- name: Install root dependencies
run: npm install
- name: Build plugin
run: npm run build
- name: Install test dependencies with Rolldown-Vite
working-directory: test-minimal-example
run: npm install vite@npm:rolldown-vite@${{ matrix.vite-version }} --save-dev
- name: Install Playwright browsers
working-directory: test-minimal-example
run: npx playwright install chromium firefox
- name: Run tests with Rolldown
working-directory: test-minimal-example
env:
CI: true
run: npm test
- name: Report Vite and Rolldown versions
working-directory: test-minimal-example
run: |
echo "Testing with Rolldown-Vite version:"
npx vite --version
echo "Package info:"
npm list vite