chore: update pnpm workspace config to use allowBuilds for pnpm v11 #7
Workflow file for this run
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: test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - feat/prisma | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v3 | |
| with: | |
| version: 11 | |
| - name: 查看pnpm版本 | |
| run: pnpm --version | |
| - name: 安装依赖 | |
| run: pnpm install | |
| - name: 迁移数据库 | |
| run: pnpm dlx prisma migrate dev --name init | |
| - name: 生成 Prisma Client | |
| run: pnpm dlx prisma generate | |
| - name: 运行测试 | |
| run: pnpm run test |