File tree Expand file tree Collapse file tree 1 file changed +55
-2
lines changed Expand file tree Collapse file tree 1 file changed +55
-2
lines changed Original file line number Diff line number Diff line change 5252 path : dist*/
5353
5454 test-package-rollup :
55- name : Test package on node ${{ matrix.node }} / ${{ matrix.os }} / rollup v ${{ matrix.rollup }}
55+ name : " rollup v ${{ matrix.rollup }} / node ${{ matrix.node }} / ${{ matrix.os }}"
5656 needs :
5757 - build
5858 runs-on : ubuntu-latest
@@ -102,13 +102,66 @@ jobs:
102102 working-directory : test/package/rollup
103103
104104 - name : Test package
105- run : npm run test:package:rollup
105+ run : npm run test
106+ working-directory : test/package/rollup
107+
108+ test-package-vite :
109+ name : " vite v${{ matrix.vite }} / node ${{ matrix.node }} / ${{ matrix.os }}"
110+ needs :
111+ - build
112+ runs-on : ubuntu-latest
113+ strategy :
114+ fail-fast : false
115+ matrix :
116+ node : ["22", "20", "18"]
117+ os : [ubuntu-latest, windows-latest]
118+ vite : ["5", "6", "7"]
119+ exclude :
120+ - os : windows-latest
121+ node : 20
122+ - os : windows-latest
123+ node : 18
124+ - vite : 7
125+ node : 18
126+ steps :
127+ - name : Checkout repo
128+ 129+
130+ - name : Setup node & npm
131+ uses :
relative-ci/.github/actions/[email protected] 132+ with :
133+ version : ${{ matrix.node }}
134+ cache : never
135+ install : false
136+
137+ - name : Install vitest
138+ run : npm install vitest
139+
140+ - name : Download build files
141+ 142+ with :
143+ name : build-artifacts
144+
145+ - name : Setup local npm registry
146+ run : ./scripts/setup-registry.sh
147+
148+ - name : Install test package dependencies
149+ run : |
150+ npm install
151+ npm install vite@${{ matrix.vite }} --force
152+ npx vite -v
153+ working-directory : test/package/vite
154+
155+ - name : Test package
156+ run : npm run test
157+ working-directory : test/package/vite
106158
107159 tests :
108160 needs :
109161 - lint
110162 - test-unit
111163 - test-package-rollup
164+ - test-package-vite
112165 runs-on : ubuntu-latest
113166 steps :
114167 - run : exit 0
You can’t perform that action at this time.
0 commit comments