Run CI against Vite 8 beta instead of rolldown-vite (#145) #92
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/install-dependencies | |
| - name: Run the linter | |
| run: pnpm lint | |
| test-e2e: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/install-dependencies | |
| - run: pnpm build:core | |
| - run: pnpm build:shims | |
| - run: pnpm playwright install --with-deps | |
| - run: pnpm -r test:e2e | |
| test-e2e-vite-8: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/install-dependencies | |
| - run: pnpm build:core | |
| - run: pnpm build:shims | |
| - run: pnpm playwright install --with-deps | |
| - name: update overrides to use vite 8 beta and re-install | |
| run: | | |
| jq '.pnpm.overrides.vite = "8.0.0-beta.7"' package.json > package.tmp.json | |
| mv package.tmp.json package.json | |
| pnpm i --no-frozen-lockfile | |
| - run: pnpm -r test:e2e | |
| test-unit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/install-dependencies | |
| - run: pnpm build:core | |
| - run: pnpm build:shims | |
| - run: pnpm -r test | |
| typecheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/install-dependencies | |
| - run: pnpm build:core | |
| - run: pnpm build:shims | |
| - run: pnpm typecheck |