feat(): added helm chart and separated chart testing from oci image building and app testing

This commit is contained in:
2026-01-19 22:25:25 +01:00
parent 181e3e2e49
commit 6592c898f2
12 changed files with 423 additions and 0 deletions

46
.gitea/workflows/ct.yaml Normal file
View File

@@ -0,0 +1,46 @@
name: Lint and Test Charts
on:
push:
branches:
- main
paths:
- 'charts/**'
pull_request:
paths:
- 'charts/**'
permissions:
contents: read
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5.0.0
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v4.3.1
- uses: actions/setup-python@v6.0.0
with:
python-version: '3.x'
check-latest: true
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.8.0
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --target-branch ${{ github.event.repository.default_branch }}

View File

@@ -4,6 +4,13 @@ on:
push:
branches:
- main
paths:
- 'cmd/**'
- 'internal/**'
pull_request:
paths:
- 'cmd/**'
- 'internal/**'
jobs:
Test: