Skip to content

Commit 5023d80

Browse files
committed
Add MCP server helm chart testing
1 parent 546e4a4 commit 5023d80

3 files changed

Lines changed: 53 additions & 3 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
on:
2+
pull_request:
3+
paths:
4+
- "charts/lago-mcp-server/**"
5+
6+
name: Lint and Test Lago MCP Server Chart
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Set up Helm
18+
uses: azure/setup-helm@v4
19+
with:
20+
version: v3.18.4
21+
22+
- name: Set up chart-testing
23+
uses: helm/chart-testing-action@v2.8.0
24+
25+
- name: Run chart-testing (list-changed)
26+
id: list-changed
27+
run: |
28+
changed=$(ct list-changed --config ct.yaml)
29+
if [[ -n "$changed" ]]; then
30+
echo "changed=true" >> "$GITHUB_OUTPUT"
31+
fi
32+
33+
- name: Run chart-testing (lint)
34+
if: steps.list-changed.outputs.changed == 'true'
35+
run: ct lint --config ct.yaml
36+
37+
- name: Create kind cluster
38+
if: steps.list-changed.outputs.changed == 'true'
39+
uses: helm/kind-action@v1.12.0
40+
41+
- name: Create lago namespace
42+
if: steps.list-changed.outputs.changed == 'true'
43+
run: kubectl create namespace lago
44+
45+
- name: Run chart-testing (install)
46+
if: steps.list-changed.outputs.changed == 'true'
47+
run: ct install --config ct.yaml --namespace default
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
on: pull_request
1+
on:
2+
pull_request:
3+
paths:
4+
- "charts/lago/**"
25

3-
name: Lint and Test Charts
6+
name: Lint and Test Lago Chart
47

58
jobs:
69
lint:

charts/lago-mcp-server/templates/secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: v1
33
kind: Secret
44
metadata:
5-
name: {{ include "lago-mcp-server.fullname" . }}-s3
5+
name: {{ include "lago-mcp-server.fullname" . }}
66
labels:
77
{{- include "lago-mcp-server.labels" . | nindent 4 }}
88
type: Opaque

0 commit comments

Comments
 (0)