Use node v18 as in other places, add prisma schema for install (#227) #15
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: Check | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| env: | |
| SKIP_ENV_VALIDATION: true | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| name: Install pnpm | |
| with: | |
| run_install: false | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Check code formatting | |
| run: pnpm prettier --check . | |
| - name: Run lint | |
| run: pnpm lint | |
| - name: Run tsc | |
| run: pnpm tsc --noEmit |