build: 新增 vite 构建流程 #391
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: | |
| push: | |
| branches: [main, feature/*] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| ci: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Type check | |
| run: bunx tsc --noEmit | |
| - name: Test | |
| run: bun test | |
| - name: Build | |
| run: bun run build:vite |