-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
70 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: chart-workflow | ||
|
||
on: | ||
workflow_call: | ||
pull_request: | ||
|
||
jobs: | ||
chart-testing: | ||
runs-on: [self-hosted, cloud-infra-ci-runner-small] | ||
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: Run Helm Chart Testing | ||
run: | | ||
ct lint > ct-lint-output.txt | ||
- uses: mshick/add-pr-comment@v2 | ||
with: | ||
preformatted: true | ||
message-id: "${{ github.event.number }}" | ||
message-path: ct-lint-output.txt | ||
|
||
helm-unit-test: | ||
runs-on: [self-hosted, cloud-infra-ci-runner-small] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Helm | ||
uses: azure/[email protected] | ||
|
||
- name: Install dependencies | ||
run: | | ||
helm plugin install https://github.com/helm-unittest/helm-unittest.git | ||
- name: Assemble list of chart directories to test | ||
run: | | ||
tr ' ' '\n' <<< "${{ inputs.charts }}" | grep -v '^$' > charts-to-test || true | ||
find . -type f -name 'Chart.yaml' -exec dirname {} \; > all-charts | ||
[ -z "${{ inputs.charts }}" ] && mv all-charts charts-to-test || true | ||
shell: bash | ||
|
||
- name: Fetch chart dependencies | ||
run: | | ||
for chart in $(cat charts-to-test); do | ||
helm dependency update "$chart" >/dev/null | ||
done | ||
shell: bash | ||
|
||
- name: Run Helm Unit Test | ||
run: | | ||
helm unittest $(cat charts-to-test) > helm-unittest-output.txt | ||
- uses: mshick/add-pr-comment@v2 | ||
with: | ||
preformatted: true | ||
message-id: "${{ github.event.number }}" | ||
message-path: helm-unittest-output.txt | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
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: [] |
This file was deleted.
Oops, something went wrong.