FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
OpenCoperLock/.github/workflows/ci.yml at main · softpython2884/OpenCoperLock · GitHub
softpython2884
/
OpenCoperLock
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
10
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
OpenCoperLock
/
.github
/
workflows
/
ci.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
86 lines (73 loc) · 2.16 KB
Breadcrumbs
OpenCoperLock
/
.github
/
workflows
/
ci.yml
Copy path
File metadata and controls
86 lines (73 loc) · 2.16 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
79
80
81
82
83
84
85
86
name
:
CI
on
:
push
:
branches
:
[main]
pull_request
:
concurrency
:
group
:
ci-${{ github.ref }}
cancel-in-progress
:
true
jobs
:
build-test
:
name
:
Lint · Typecheck · Test · Build
runs-on
:
ubuntu-latest
services
:
postgres
:
image
:
postgres:16-alpine
env
:
POSTGRES_USER
:
ocl
POSTGRES_PASSWORD
:
ocl
POSTGRES_DB
:
ocl_test
ports
:
-
5432:5432
options
:
>-
--health-cmd "pg_isready -U ocl"
--health-interval 5s
--health-timeout 5s
--health-retries 10
env
:
DATABASE_URL
:
postgresql://ocl:ocl@localhost:5432/ocl_test
steps
:
-
uses
:
actions/checkout@v4
#
No `version:` here — pnpm is pinned via the root package.json `packageManager`
#
field. Specifying both makes pnpm/action-setup fail with a version conflict.
-
uses
:
pnpm/action-setup@v4
-
uses
:
actions/setup-node@v4
with
:
node-version
:
22
cache
:
pnpm
-
name
:
Install dependencies
run
:
pnpm install --frozen-lockfile
-
name
:
Build shared package
run
:
pnpm --filter @opencoperlock/shared build
-
name
:
Generate Prisma client
run
:
pnpm --filter @opencoperlock/api prisma:generate
-
name
:
Typecheck
run
:
pnpm -r typecheck
-
name
:
Lint
run
:
pnpm -r lint
-
name
:
Test (unit + integration)
run
:
pnpm -r test
-
name
:
Build (web + api)
run
:
pnpm --filter @opencoperlock/api build && pnpm --filter @opencoperlock/web build
env
:
NEXT_PUBLIC_API_URL
:
http://localhost:4000
docker
:
name
:
Docker image build
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v4
-
uses
:
docker/setup-buildx-action@v3
-
name
:
Build API image
uses
:
docker/build-push-action@v6
with
:
context
:
.
file
:
infra/Dockerfile.api
push
:
false
-
name
:
Build Web image
uses
:
docker/build-push-action@v6
with
:
context
:
.
file
:
infra/Dockerfile.web
push
:
false
build-args
:
|
NEXT_PUBLIC_API_URL=http://localhost:4000
Back
|
FazBrowse Home
|
New Git URL