Skip to content

Commit

Permalink
Merge pull request #14 from getditto/kafka-no-prune
Browse files Browse the repository at this point in the history
Add chart-testing workflow
  • Loading branch information
sl1pm4t authored Nov 26, 2024
2 parents e7454d8 + 37be025 commit 0c472f4
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/chart-testing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: chart-workflow

on:
workflow_call:
pull_request:

jobs:
chart-testing:
runs-on: [ubuntu-latest]
container:
image: quay.io/helmpack/chart-testing:v3.11.0
options: --user 1001
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install dependencies
run: |
helm plugin install https://github.com/helm-unittest/helm-unittest.git
- name: Run Helm Chart Testing
run: |
ct lint 2>&1 | tee chart-testing-output-ct-lint.txt
- uses: mshick/add-pr-comment@v2
with:
preformatted: true
message-id: "${{ github.event.number }}"
message-path: chart-testing-output-*.txt
14 changes: 12 additions & 2 deletions charts/kafka/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
apiVersion: v2
description: Setup a Kafka cluster
description: Setup a Kafka cluster using Strimzi operator
name: kafka
version: 0.3.0
version: 0.3.1
type: application
dependencies: []
keywords:
- ditto
- bigpeer
- kafka
- strimzi
sources:
- https://github.com/getditto/ditto-helm
maintainers:
- name: getditto
email: [email protected]
10 changes: 10 additions & 0 deletions ct.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
remote: origin
target-branch: main
exclude-deprecated: true
chart-dirs:
- charts

helm-extra-args: --timeout 600s
validate-maintainers: false
additional-commands:
- "helm unittest -f \"tests/*.yaml\" {{ .Path }}"

0 comments on commit 0c472f4

Please sign in to comment.