-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (32 loc) · 1022 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Lint
on:
pull_request:
branches: ["*"]
jobs:
lint:
env:
# You can leverage Vercel Remote Caching with Turbo to speed up your builds
# @link https://turborepo.org/docs/core-concepts/remote-caching#remote-caching-on-vercel-builds
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install deps (with cache)
run: pnpm install
- name: Prisma generate (no engine)
run: pnpm turbo db-generate:no-engine --cache-dir=".turbo"
- name: Build, lint and type-check
run: pnpm turbo lint type-check --cache-dir=".turbo"
- name: Check workspaces
run: pnpm manypkg check