-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.25 KB
/
Copy pathci.yml
File metadata and controls
46 lines (43 loc) · 1.25 KB
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
43
44
45
46
name: CI
on:
pull_request:
branches: [development, main]
push:
branches: [development, main]
jobs:
dashboard:
runs-on: ubuntu-latest
defaults:
run:
working-directory: dashboard
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: dashboard/package-lock.json
- run: npm ci
- run: npx prisma generate
env:
# prisma.config.ts uses prisma/config's strict env() helper, which
# throws if DATABASE_URL is unset. `prisma generate` does not connect
# to the database — it only reads the schema and writes the client —
# so a dummy URL satisfies the config loader.
DATABASE_URL: "postgresql://prisma:prisma@localhost:5432/prisma"
- run: npm run lint
- run: npx tsc --noEmit
extension:
runs-on: ubuntu-latest
defaults:
run:
working-directory: extension
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: extension/package-lock.json
- run: npm ci
- run: npm run typecheck