-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (69 loc) · 2.3 KB
/
ci.yml
File metadata and controls
85 lines (69 loc) · 2.3 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
82
83
84
85
# agent-pmo:2efd847
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
name: CI
runs-on: ubuntu-latest
# TIMEOUT EXCEPTION: Postgres startup, DB migration, embedding service model load,
# full docker stack build (all APIs + dashboard), 5 test projects with coverage,
# and Playwright e2e suite require ~45 min.
timeout-minutes: 60
env:
DB_PASSWORD: changeme
# C# integration tests connect to the db-only stack on localhost
TEST_POSTGRES_CONNECTION: Host=localhost;Database=postgres;Username=postgres;Password=changeme
ICD10_TEST_CONNECTION_STRING: Host=localhost;Database=icd10;Username=postgres;Password=changeme
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- uses: actions/setup-node@v4
with:
node-version: '24'
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@10.33.0 --activate
- run: dotnet restore
- run: dotnet tool restore
- name: Start Postgres and migrate schemas
run: make db-migrate
# `make lint` runs the full Release build, which triggers
# `dotnet DataProvider postgres` codegen against the live database.
- name: Format check
run: make fmt CHECK=1
- name: Lint
run: make lint
- name: Install Playwright browsers
run: cd Dashboard/dashboard-ts && pnpm exec playwright install --with-deps chromium
- name: Start full stack for e2e (all APIs + embedding service + dashboard)
run: make start-stack
- name: Test
run: make test
- name: Upload coverage
uses: actions/upload-artifact@v4
if: always()
with:
name: coverage-report
path: |
TestResults/**/coverage.*
Dashboard/dashboard-ts/coverage/**
retention-days: 7
- name: Upload Playwright report
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: Dashboard/dashboard-ts/playwright-report/
retention-days: 7
- name: Build
run: make build