Repository navigation
70 lines (66 loc) · 1.86 KB
/
Copy pathci.yml
File metadata and controls
70 lines (66 loc) · 1.86 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
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
backend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
services:
kurrentdb:
image: kurrentplatform/kurrentdb:25.0.1-x64-8.0-bookworm-slim
env:
KURRENTDB_CLUSTER_SIZE: 1
KURRENTDB_RUN_PROJECTIONS: All
KURRENTDB_START_STANDARD_PROJECTIONS: true
KURRENTDB_INSECURE: true
ports: ['2113:2113']
options: >-
--health-cmd "curl -fsS http://localhost:2113/health/live || exit 1"
--health-interval 5s --health-retries 24
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: backend/.nvmrc
cache: npm
cache-dependency-path: backend/package-lock.json
- run: npm ci
- run: npm test
- run: npm run test:e2e
env:
KURRENTDB_CONNECTION_STRING: kurrentdb://localhost:2113?tls=false
- run: npm run build
consent-lib:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend/consent-lib
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: frontend/consent-lib/.nvmrc
cache: npm
cache-dependency-path: frontend/consent-lib/package-lock.json
- run: npm ci
- run: npm run test:lib
- run: npm run build:wc
dashboard:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend/dashboard
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: frontend/dashboard/.nvmrc
cache: npm
cache-dependency-path: frontend/dashboard/package-lock.json
- run: npm ci
- run: npx ng test --watch=false
- run: npx ng build