-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (76 loc) · 2.2 KB
/
Copy pathci.yml
File metadata and controls
81 lines (76 loc) · 2.2 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
79
80
81
name: CI
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
quality:
strategy:
fail-fast: false
matrix:
os: [macos-14, windows-2025, ubuntu-24.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10.33.2
- uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm typecheck
- run: pnpm test
- run: pnpm docs:check
- run: pnpm build
docker:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Build runtime image
run: docker build -f infra/docker/Dockerfile --build-arg START_FILE=services/gateway/dist/server.js .
integration:
runs-on: ubuntu-24.04
services:
postgres:
image: postgres:16.13-bookworm
env:
POSTGRES_DB: archetype
POSTGRES_USER: archetype
POSTGRES_PASSWORD: archetype
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U archetype -d archetype"
--health-interval 5s --health-timeout 5s --health-retries 20
mysql:
image: mysql:8.4
env:
MYSQL_DATABASE: demo
MYSQL_USER: demo
MYSQL_PASSWORD: demo
MYSQL_ROOT_PASSWORD: root-demo
ports:
- 3306:3306
options: >-
--health-cmd "mysqladmin ping -h localhost -uroot -proot-demo"
--health-interval 5s --health-timeout 5s --health-retries 30
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10.33.2
- uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Run PostgreSQL and MySQL integration tests
run: pnpm test:integration
env:
TEST_PLATFORM_POSTGRES_URL: postgres://archetype:archetype@localhost:5432/archetype
TEST_POSTGRES_URL: postgres://archetype:archetype@localhost:5432/archetype
TEST_MYSQL_URL: mysql://demo:demo@localhost:3306/demo