-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 912 Bytes
/
checks.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
name: Checks
on:
workflow_call:
jobs:
lint:
name: Lint 💅
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/prepare
- run: pnpm run lint
type-check:
name: Type check 🧮
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/prepare
- run: pnpm exec prisma generate
- uses: ./.github/workflows/actions/type-check-with-cache
unit-tests:
name: Unit tests 🧪
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/prepare
# We need to generate schema types before running tests
- run: pnpm exec prisma generate
- uses: ./.github/workflows/actions/type-check-with-cache
- run: pnpm run test