-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (73 loc) · 2.21 KB
/
Copy pathci.yml
File metadata and controls
78 lines (73 loc) · 2.21 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: CI
on:
push:
branches: [main, master]
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
quality:
strategy:
fail-fast: false
matrix:
node: [22, 24]
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17-alpine
env:
POSTGRES_DB: attic
POSTGRES_USER: attic
POSTGRES_PASSWORD: attic
ports: ["5432:5432"]
options: >-
--health-cmd "pg_isready -U attic"
--health-interval 5s
--health-timeout 5s
--health-retries 10
redis:
image: redis:7.4-alpine
ports: ["6379:6379"]
options: >-
--health-cmd "redis-cli ping"
--health-interval 5s
--health-timeout 5s
--health-retries 10
env:
DATABASE_URL: postgresql://attic:attic@localhost:5432/attic
REDIS_URL: redis://localhost:6379
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm format:check
- run: pnpm lint
- run: pnpm typecheck
- run: pnpm test
- run: pnpm build
- run: node tests/consumers/esm.mjs
- run: node tests/consumers/commonjs.cjs
- if: matrix.node == 22
run: pnpm pack:check
prisma-7-minimum-nest-10:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm add --save-dev --lockfile=false [email protected] @prisma/[email protected] @nestjs/[email protected] @nestjs/[email protected] @nestjs/[email protected]
# Prisma 7.0's generated client contains non-portable inferred declarations.
# Attic's real build still validates declarations against the current Prisma release.
- run: pnpm generate:test-client && pnpm exec tsc --noEmit --declaration false --declarationMap false
- run: pnpm test:unit