fix(lint): 修复前端 lint/TypeScript 类型问题 #14
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, develop] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v3 | |
| with: | |
| version: 9 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: pnpm | |
| - run: pnpm install | |
| - name: Type check | |
| run: pnpm typecheck || true | |
| - name: Build | |
| run: pnpm build | |
| - name: E2E tests (Playwright) | |
| run: npx playwright install --with-deps && pnpm test:e2e:fe |