Skip to content

Commit ca4d254

Browse files
committed
chore: run different ci build
1 parent 362d171 commit ca4d254

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
matrix:
1515
os: [macos-latest, windows-latest]
1616
node-version: [22.x]
17+
version: [latest, legacy]
1718

1819
steps:
1920
- uses: actions/checkout@v3
@@ -25,7 +26,15 @@ jobs:
2526
node-version: ${{ matrix.node-version }}
2627
cache: pnpm
2728

29+
- name: vitest 3.2
30+
run: node ./scripts/lower-vitest-version.js
31+
if: ${{ contains(matrix.version, 'legacy') }}
32+
- run: pnpm install --no-frozen-lockfile
33+
if: ${{ contains(matrix.version, 'legacy') }}
34+
2835
- run: pnpm install --frozen-lockfile
36+
if: ${{ contains(matrix.version, 'latest') }}
37+
2938
- run: pnpm build
3039
- run: pnpm typecheck
3140
- run: pnpm lint
@@ -37,13 +46,6 @@ jobs:
3746
- name: test-e2e
3847
run: pnpm test-e2e --retry 2
3948

40-
- name: vitest 3.2
41-
run: node ./scripts/lower-vitest-version.js
42-
- run: pnpm install --no-frozen-lockfile
43-
44-
- name: test-e2e-legacy
45-
run: pnpm test-e2e --retry 2
46-
4749
- uses: actions/upload-artifact@v4
4850
if: always()
4951
with:

0 commit comments

Comments
 (0)