-
Notifications
You must be signed in to change notification settings - Fork 8
78 lines (63 loc) · 1.75 KB
/
Copy pathci.yml
File metadata and controls
78 lines (63 loc) · 1.75 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:
branches: [main, master]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22]
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_DB: sint_test
POSTGRES_USER: sint
POSTGRES_PASSWORD: sint_test_pw
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis:7-alpine
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
DATABASE_URL: postgresql://sint:sint_test_pw@localhost:5432/sint_test
REDIS_URL: redis://localhost:6379
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
with:
version: 9.15.0
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm run build
- name: Fixture Certification Gate
run: pnpm run cert:fixtures
- name: PX4 ULog Artifact Sample Drift Check
run: |
pnpm run px4:artifact:sample
git diff --exit-code -- docs/reports/px4-ulog-correlation-artifact.sample.json
- name: PX4 ULog Artifact Report Smoke Check
run: pnpm run px4:artifact:report -- --stamp=ci-smoke
- name: Typecheck
run: pnpm run typecheck
- name: Test
run: pnpm run test