chore: 重新生成pnpm-lock.yml #73
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: [] | |
| jobs: | |
| unit-test: | |
| runs-on: ubuntu-latest | |
| env: | |
| TZ: Asia/Shanghai | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v2 | |
| with: | |
| version: 10 | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: TypeScript Check | |
| run: pnpm type-check | |
| - name: Rebuild better-sqlite3 | |
| run: pnpm rebuild:node | |
| - name: Unit Test | |
| run: pnpm test:unit | |
| # - name: Upload test results to Codecov | |
| # if: ${{ !cancelled() }} | |
| # uses: codecov/test-results-action@v1 | |
| # with: | |
| # token: ${{ secrets.CODECOV_TOKEN }} | |
| # files: ./packages/web/test-report.junit.xml | |
| # - name: analyze bundle size | |
| # env: | |
| # BUNDLE_ANALYZER_UPLOAD_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| # run: pnpm -F web bundle-analyzer |