-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.08 KB
/
Copy pathci.yml
File metadata and controls
36 lines (33 loc) · 1.08 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
name: CI
on:
pull_request:
branches: [main]
permissions:
id-token: write
contents: read
jobs:
validate:
runs-on: warp-ubuntu-latest-arm64-2x
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/determinate-nix-action@v3
- uses: DeterminateSystems/flakehub-cache-action@main
- name: Lint chart
run: nix develop --command helm lint .
- name: Validate templates (single-node)
run: |
nix develop --command bash -c "
helm template zero-cache . \
--set singleNode.enabled=true \
--set common.database.upstream.url.value=postgres://test:test@localhost/test \
| kubeconform -strict -summary
"
- name: Validate templates (multi-node)
run: |
nix develop --command bash -c "
helm template zero-cache . \
--set common.database.upstream.url.value=postgres://test:test@localhost/test \
| kubeconform -strict -summary
"
- name: Run tests
run: nix develop --command uv run pytest -v