-
Notifications
You must be signed in to change notification settings - Fork 21
57 lines (47 loc) · 1.3 KB
/
test-latest-vite.yml
File metadata and controls
57 lines (47 loc) · 1.3 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
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@v4
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