-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (28 loc) · 848 Bytes
/
Copy pathci.yml
File metadata and controls
36 lines (28 loc) · 848 Bytes
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: CI
on:
push:
branches: [main]
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# The version comes from "packageManager" in package.json; passing it here
# as well makes the action bail out on a version mismatch.
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install
run: pnpm install --frozen-lockfile
env:
# prisma generate runs on postinstall and only needs a parseable URL
DATABASE_URL: postgresql://user:pass@localhost:5432/db?schema=public
- name: Build shared
run: pnpm --filter @caseforge/shared build
- name: Typecheck
run: pnpm typecheck
- name: Unit tests
run: pnpm test