Skip to content

Commit ef31d98

Browse files
committed
test: Add rolldown tests
1 parent cd85402 commit ef31d98

File tree

6 files changed

+474
-24
lines changed

6 files changed

+474
-24
lines changed

.github/workflows/ci.yml

Lines changed: 48 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
retention-days: 1
5252
path: dist*/
5353

54-
test-package:
54+
test-package-rollup:
5555
name: "Test package on rollup v${{ matrix.rollup }} / node ${{ matrix.node }} / ${{ matrix.os }}"
5656
needs:
5757
- build
@@ -102,14 +102,59 @@ jobs:
102102
working-directory: test/package
103103

104104
- name: "Test package"
105-
run: npm run test:package
105+
run: npm run test:package -- -t rollup
106+
107+
test-package-rolldown:
108+
name: "Test package on rolldown v${{ matrix.rolldown }} / node ${{ matrix.node }} / ${{ matrix.os }}"
109+
needs:
110+
- build
111+
runs-on: ubuntu-latest
112+
strategy:
113+
fail-fast: false
114+
matrix:
115+
node: ["22"]
116+
os: [ubuntu-latest, windows-latest]
117+
rolldown: ["1"]
118+
119+
steps:
120+
- name: "Checkout repo"
121+
uses: actions/checkout@v4.2.2
122+
123+
- name: "Setup node & npm"
124+
uses: "relative-ci/.github/actions/setup-node-npm@v1.1.0"
125+
with:
126+
cache: "never"
127+
version: ${{ matrix.node }}
128+
install: false
129+
130+
- name: "Install test dependencies"
131+
run: npm install vitest
132+
133+
- name: "Download build files"
134+
uses: actions/download-artifact@v4.2.1
135+
with:
136+
name: build-artifacts
137+
138+
- name: "Setup local npm registry"
139+
run: ./scripts/setup-registry.sh
140+
141+
- name: "Install test package dependencies"
142+
run: |
143+
npm install
144+
npm install rolldown@${{ matrix.rolldown }} --force
145+
npx rolldown -v
146+
working-directory: test/package
147+
148+
- name: "Test package"
149+
run: npm run test:package -- -t rolldown
106150

107151
tests:
108152
needs:
109153
- lint
110154
- test-unit
111155
- build
112-
- test-package
156+
- test-package-rollup
157+
- test-package-rolldown
113158
runs-on: ubuntu-latest
114159
steps:
115160
- run: exit 0

0 commit comments

Comments
 (0)