-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (61 loc) · 2.23 KB
/
Copy pathci.yml
File metadata and controls
67 lines (61 loc) · 2.23 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
name: CI
# Fast, dependency-free gates on every PR and push to main. Integration/e2e (which need a live
# stack or a kind cluster) run in e2e.yml, not here, so this stays quick and always-green.
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
node:
name: Typecheck + build (dashboard)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
# Install WITHOUT the committed lockfile: it is generated on macOS and pins the
# darwin rollup binary, so `npm ci` on Linux hits npm's optional-deps bug
# (npm/cli#4828) and vite build fails on a missing @rollup/rollup-linux-x64-gnu.
# This mirrors selfhosted/Dockerfile.dashboard, which builds the same way.
- name: Install
run: rm -f package-lock.json && npm install --no-audit --no-fund
# `tsc -b && vite build` — the type + build gate for the dashboard. The API is plain
# JS (no compile step); its integration tests need a live stack and run in e2e.yml.
- name: Typecheck + build dashboard
run: npm run build
helm:
name: Helm lint + template (both o11y states)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: azure/setup-helm@v4
- name: Lint
run: helm lint charts/truss
- name: Template renders (default = backends off)
run: helm template t charts/truss > /dev/null
- name: Template renders (observability fully on)
run: |
helm template t charts/truss \
--set observability.backends.enabled=true \
--set observability.serviceMonitor.enabled=true \
--set observability.prometheusRule.enabled=true \
--set secrets.encryptionKey=ci-encryption-key-0123456789-abcdefghij > /dev/null
operator:
name: Operator unit + envtest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: operator/go.mod
- name: Test (envtest) + build
working-directory: operator
run: |
make test
make build