mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 00:47:04 +02:00
ci: 🧠
This commit is contained in:
parent
4863146ad9
commit
d2cbe786f6
2 changed files with 5 additions and 7 deletions
|
@ -13,7 +13,8 @@ chart-dirs:
|
||||||
|
|
||||||
excluded-charts-lint: []
|
excluded-charts-lint: []
|
||||||
|
|
||||||
excluded-charts-install: []
|
excluded-charts-install:
|
||||||
|
- library/common
|
||||||
|
|
||||||
chart-repos:
|
chart-repos:
|
||||||
- bitnami=https://charts.bitnami.com/bitnami
|
- bitnami=https://charts.bitnami.com/bitnami
|
||||||
|
|
9
.github/workflows/charts-test.yaml
vendored
9
.github/workflows/charts-test.yaml
vendored
|
@ -35,16 +35,13 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{ inputs.checkoutCommit }}
|
ref: ${{ inputs.checkoutCommit }}
|
||||||
|
|
||||||
- name: Set up chart-testing
|
|
||||||
uses: helm/chart-testing-action@v2.2.1
|
|
||||||
|
|
||||||
- name: Run chart-testing (list-changed)
|
- name: Run chart-testing (list-changed)
|
||||||
id: list-changed
|
id: list-changed
|
||||||
if: inputs.chartChanges != ''
|
if: inputs.chartChanges != ''
|
||||||
run: |
|
run: |
|
||||||
EXCLUDED=$(yq eval '.excluded-charts-install | join(",")' .ci/ct/ct.yaml)
|
EXCLUDED=$(yq -o json eval '.excluded-charts-install' .ci/ct/ct.yaml)
|
||||||
CHARTS=$(ct list-changed --config .ci/ct/ct.yaml --excluded-charts "${EXCLUDED}")
|
CHARTS_JSON=$(echo "${{ inputs.chartChanges }}" | yq -o json eval 'split(" ")' -)
|
||||||
OUTPUT_JSON=$(echo "${CHARTS}" | jq -R -s -c 'split("\n")[:-1]')
|
OUTPUT_JSON=$(yq --null-input "$CHARTS_JSON - $EXCLUDED | .. style= \"flow\"")
|
||||||
echo ::set-output name=charts::${OUTPUT_JSON}
|
echo ::set-output name=charts::${OUTPUT_JSON}
|
||||||
if [[ $(echo ${OUTPUT_JSON} | jq -c '. | length') -gt 0 ]]; then
|
if [[ $(echo ${OUTPUT_JSON} | jq -c '. | length') -gt 0 ]]; then
|
||||||
echo "::set-output name=detected::true"
|
echo "::set-output name=detected::true"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue