|
78 | 78 | path: packages/*/dist |
79 | 79 | key: build-vue-i18n-os-${{ matrix.os }}-${{ github.sha }} |
80 | 80 |
|
| 81 | + build-rolldown: |
| 82 | + name: Build with rolldown |
| 83 | + strategy: |
| 84 | + matrix: |
| 85 | + os: [ubuntu-latest, windows-latest, macos-latest] |
| 86 | + node: [18] |
| 87 | + |
| 88 | + runs-on: ${{ matrix.os }} |
| 89 | + |
| 90 | + steps: |
| 91 | + - name: Checkout codes |
| 92 | + uses: actions/checkout@v4 |
| 93 | + |
| 94 | + - name: Enable corepack |
| 95 | + run: corepack enable |
| 96 | + |
| 97 | + - name: Setup node |
| 98 | + uses: actions/setup-node@v4 |
| 99 | + with: |
| 100 | + node-version: ${{ matrix.node }} |
| 101 | + cache: 'pnpm' |
| 102 | + |
| 103 | + - name: Install dependencies |
| 104 | + run: pnpm install --no-frozen-lockfile |
| 105 | + |
| 106 | + - name: Build codes |
| 107 | + run: | |
| 108 | + pnpm build:rolldown --withTypes |
| 109 | +
|
| 110 | + - name: Cache dist |
| 111 | + uses: actions/cache@v4 |
| 112 | + with: |
| 113 | + path: packages/*/dist |
| 114 | + key: build-rolldown-vue-i18n-os-${{ matrix.os }}-${{ github.sha }} |
| 115 | + |
81 | 116 | test-unit: |
82 | 117 | name: Unit test |
83 | 118 | strategy: |
@@ -147,3 +182,44 @@ jobs: |
147 | 182 |
|
148 | 183 | - name: Run e2e tests |
149 | 184 | run: pnpm test:e2e |
| 185 | + |
| 186 | + test-e2e-rolldown: |
| 187 | + name: E2E test for rolldown build |
| 188 | + |
| 189 | + needs: |
| 190 | + - build-rolldown |
| 191 | + |
| 192 | + strategy: |
| 193 | + matrix: |
| 194 | + os: [ubuntu-latest, windows-latest, macos-latest] |
| 195 | + node: [18.19, 20, 22] |
| 196 | + |
| 197 | + runs-on: ${{ matrix.os }} |
| 198 | + |
| 199 | + steps: |
| 200 | + - name: Checkout codes |
| 201 | + uses: actions/checkout@v4 |
| 202 | + |
| 203 | + - name: Enable corepack |
| 204 | + run: corepack enable |
| 205 | + |
| 206 | + - name: Setup node |
| 207 | + uses: actions/setup-node@v4 |
| 208 | + with: |
| 209 | + node-version: ${{ matrix.node }} |
| 210 | + cache: 'pnpm' |
| 211 | + |
| 212 | + - name: Install dependencies |
| 213 | + run: pnpm install --no-frozen-lockfile |
| 214 | + |
| 215 | + - name: Install Playwright |
| 216 | + run: pnpm playwright-core install chromium |
| 217 | + |
| 218 | + - name: Restore dist cache |
| 219 | + uses: actions/cache@v4 |
| 220 | + with: |
| 221 | + path: packages/*/dist |
| 222 | + key: build-rolldown-vue-i18n-os-${{ matrix.os }}-${{ github.sha }} |
| 223 | + |
| 224 | + - name: Run e2e tests |
| 225 | + run: pnpm test:e2e |
0 commit comments