TrueChartsClone/.github/workflows/charts-lint.yaml

433 lines
16 KiB
YAML
Raw Normal View History

name: "Charts: Lint"
on:
workflow_call:
inputs:
checkoutCommit:
required: true
type: string
chartChangesDetected:
required: true
type: string
jobs:
Update ct-lint.yaml (#8789) **Description** <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> ⚒️ Fixes # <!--(issue)--> **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** <!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration --> **📃 Notes:** <!-- Please enter any other relevant information here --> **✔️ Checklist:** - [ ] ⚖️ My code follows the style guidelines of this project - [ ] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [ ] ⬆️ I increased versions for any altered app according to semantic versioning **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🪞 I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --------- Signed-off-by: Kjeld Schouten <kjeld@schouten-lebbing.nl>
2023-05-05 16:36:14 -04:00
verify-dep-sig:
runs-on: ubuntu-latest
name: Verify Dependency Signatures
container:
image: ghcr.io/truecharts/devcontainer:3.1.10@sha256:c239addf725eb5cedf79517f8089fdafdc32b5270d1893ee87ae6e511b9bcae3
steps:
- name: Install Kubernetes tools
uses: yokawasa/action-setup-kube-tools@af4ebb1af1efd30c5bd84a2e9773355ad6362a33 # v0.9.3
with:
setup-tools: |
helmv3
helm: "3.8.0"
- name: Prep Helm
run: |
helm repo add truecharts https://charts.truecharts.org
helm repo add truecharts-library https://library-charts.truecharts.org
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add prometheus https://prometheus-community.github.io/helm-charts
helm repo update
- name: Prepare GPG key
shell: bash
run: |
gpg_dir=.cr-gpg
mkdir "$gpg_dir"
keyring="$gpg_dir/secring.gpg"
base64 -d <<< "$GPG_KEYRING_BASE64" > "$keyring"
passphrase_file="$gpg_dir/passphrase"
echo "$GPG_PASSPHRASE" > "$passphrase_file"
echo "CR_PASSPHRASE_FILE=$passphrase_file" >> "$GITHUB_ENV"
echo "CR_KEYRING=$keyring" >> "$GITHUB_ENV"
env:
GPG_KEYRING_BASE64: "${{ secrets.GPG_KEYRING_BASE64 }}"
GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}"
- name: Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
with:
fetch-depth: 0
- name: Setting repo parent dir as safe safe.directory
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Collect changes
id: collect-changes
uses: ./.github/actions/collect-changes
- name: Fetch and Verify dependencies
shell: bash
if: |
steps.collect-changes.outputs.changesDetectedAfterTag == 'true'
run: |
CHARTS=(${{ steps.collect-changes.outputs.modifiedChartsAfterTag }})
charts_path="charts"
for changed in ${CHARTS[@]}; do
.github/scripts/fetch_helm_deps.sh "${changed}"
done
2022-03-30 13:59:15 -04:00
generate-lint-matrix:
name: Generate matrix for lint
runs-on: ubuntu-latest
2022-03-30 13:59:15 -04:00
outputs:
2022-03-30 14:54:57 -04:00
matrix1: |
2022-03-30 13:59:15 -04:00
{
2022-03-30 14:54:57 -04:00
"chart": ${{ steps.list-changed.outputs.charts1 }}
}
matrix2: |
{
"chart": ${{ steps.list-changed.outputs.charts2 }}
2022-03-30 13:59:15 -04:00
}
matrix3: |
{
"chart": ${{ steps.list-changed.outputs.charts3 }}
}
matrix4: |
{
"chart": ${{ steps.list-changed.outputs.charts4 }}
}
matrix5: |
{
"chart": ${{ steps.list-changed.outputs.charts5 }}
}
matrix6: |
{
"chart": ${{ steps.list-changed.outputs.charts6 }}
}
2022-03-31 05:14:14 -04:00
detected1: ${{ steps.list-changed.outputs.detected1 }}
detected2: ${{ steps.list-changed.outputs.detected2 }}
detected3: ${{ steps.list-changed.outputs.detected3 }}
detected4: ${{ steps.list-changed.outputs.detected4 }}
detected5: ${{ steps.list-changed.outputs.detected5 }}
detected6: ${{ steps.list-changed.outputs.detected6 }}
steps:
- name: Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
with:
fetch-depth: 0
ref: ${{ inputs.checkoutCommit }}
- name: Set up chart-testing
chore(deps): update helm/chart-testing-action action to v2.4.0 (#7889) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [helm/chart-testing-action](https://togithub.com/helm/chart-testing-action) | action | minor | `v2.3.1` -> `v2.4.0` | --- ### ⚠ Dependency Lookup Warnings ⚠ Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>helm/chart-testing-action</summary> ### [`v2.4.0`](https://togithub.com/helm/chart-testing-action/releases/tag/v2.4.0) [Compare Source](https://togithub.com/helm/chart-testing-action/compare/v2.3.1...v2.4.0) ##### What's Changed - Retry artifact downloads by [@&#8203;steven-sheehy](https://togithub.com/steven-sheehy) in [https://github.com/helm/chart-testing-action/pull/111](https://togithub.com/helm/chart-testing-action/pull/111) - fix example workflow by [@&#8203;CrowdSalat](https://togithub.com/CrowdSalat) in [https://github.com/helm/chart-testing-action/pull/115](https://togithub.com/helm/chart-testing-action/pull/115) - docs: only run chart lint if changed by [@&#8203;fty4](https://togithub.com/fty4) in [https://github.com/helm/chart-testing-action/pull/106](https://togithub.com/helm/chart-testing-action/pull/106) - docs: use GITHUB_OUTPUT in example workflow by [@&#8203;fty4](https://togithub.com/fty4) in [https://github.com/helm/chart-testing-action/pull/107](https://togithub.com/helm/chart-testing-action/pull/107) - Use cosign to verify the release and update chart-testing to v3.8.0 by [@&#8203;cpanato](https://togithub.com/cpanato) in [https://github.com/helm/chart-testing-action/pull/116](https://togithub.com/helm/chart-testing-action/pull/116) ##### New Contributors - [@&#8203;steven-sheehy](https://togithub.com/steven-sheehy) made their first contribution in [https://github.com/helm/chart-testing-action/pull/111](https://togithub.com/helm/chart-testing-action/pull/111) - [@&#8203;CrowdSalat](https://togithub.com/CrowdSalat) made their first contribution in [https://github.com/helm/chart-testing-action/pull/115](https://togithub.com/helm/chart-testing-action/pull/115) - [@&#8203;fty4](https://togithub.com/fty4) made their first contribution in [https://github.com/helm/chart-testing-action/pull/106](https://togithub.com/helm/chart-testing-action/pull/106) **Full Changelog**: https://github.com/helm/chart-testing-action/compare/v2...v2.4.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTMuMSIsInVwZGF0ZWRJblZlciI6IjM0LjE1My4xIn0=-->
2023-04-22 08:17:02 -04:00
uses: helm/chart-testing-action@e8788873172cb653a90ca2e819d79d65a66d4e76 # v2.4.0
2022-03-30 14:54:57 -04:00
- name: Collect changes
id: list-changed
if: inputs.chartChangesDetected == 'true'
shell: bash
run: |
EXCLUDED=$(yq eval -o=json '.excluded-charts // []' .github/ct-lint.yaml)
CHARTS=$(ct list-changed --config .github/ct-lint.yaml)
CHARTS_JSON=$(echo "${CHARTS}" | jq -R -s -c 'split("\n")[:-1]')
OUTPUT_JSON=$(echo "{\"excluded\": ${EXCLUDED}, \"all\": ${CHARTS_JSON}}" | jq -c '.all-.excluded')
OUTPUT_JSON1=$((echo $OUTPUT_JSON | jq -r -c '.[:50]'; echo $OUTPUT_JSON | jq -r -c '.[301:350]'; echo $OUTPUT_JSON | jq -r -c '.[601:650]'; echo $OUTPUT_JSON | jq -r -c '.[901:950]'; echo $OUTPUT_JSON | jq -r -c '.[1201:1250]') | jq -s add)
OUTPUT_JSON2=$((echo $OUTPUT_JSON | jq -r -c '.[51:100]'; echo $OUTPUT_JSON | jq -r -c '.[351:400]'; echo $OUTPUT_JSON | jq -r -c '.[651:700]'; echo $OUTPUT_JSON | jq -r -c '.[951:1000]'; echo $OUTPUT_JSON | jq -r -c '.[1251:1300]') | jq -s add)
OUTPUT_JSON3=$((echo $OUTPUT_JSON | jq -r -c '.[101:150]'; echo $OUTPUT_JSON | jq -r -c '.[401:450]'; echo $OUTPUT_JSON | jq -r -c '.[701:750]'; echo $OUTPUT_JSON | jq -r -c '.[1001:1050]'; echo $OUTPUT_JSON | jq -r -c '.[1301:1350]') | jq -s add)
OUTPUT_JSON4=$((echo $OUTPUT_JSON | jq -r -c '.[151:200]'; echo $OUTPUT_JSON | jq -r -c '.[451:500]'; echo $OUTPUT_JSON | jq -r -c '.[751:800]'; echo $OUTPUT_JSON | jq -r -c '.[1051:1100]'; echo $OUTPUT_JSON | jq -r -c '.[1351:1400]') | jq -s add)
OUTPUT_JSON5=$((echo $OUTPUT_JSON | jq -r -c '.[201:250]'; echo $OUTPUT_JSON | jq -r -c '.[501:550]'; echo $OUTPUT_JSON | jq -r -c '.[801:850]'; echo $OUTPUT_JSON | jq -r -c '.[1101:1150]'; echo $OUTPUT_JSON | jq -r -c '.[1401:1450]') | jq -s add)
OUTPUT_JSON6=$((echo $OUTPUT_JSON | jq -r -c '.[251:300]'; echo $OUTPUT_JSON | jq -r -c '.[551:600]'; echo $OUTPUT_JSON | jq -r -c '.[851:900]'; echo $OUTPUT_JSON | jq -r -c '.[1151:1200]'; echo $OUTPUT_JSON | jq -r -c '.[1451:1500]') | jq -s add)
2022-03-30 14:54:57 -04:00
echo ::set-output name=charts1::${OUTPUT_JSON1}
echo ::set-output name=charts2::${OUTPUT_JSON2}
echo ::set-output name=charts3::${OUTPUT_JSON3}
echo ::set-output name=charts4::${OUTPUT_JSON4}
echo ::set-output name=charts5::${OUTPUT_JSON5}
echo ::set-output name=charts6::${OUTPUT_JSON6}
2022-03-31 05:14:14 -04:00
if [[ $(echo ${OUTPUT_JSON1} | jq -c '. | length') -gt 0 ]]; then
echo "::set-output name=detected1::true"
fi
if [[ $(echo ${OUTPUT_JSON2} | jq -c '. | length') -gt 0 ]]; then
echo "::set-output name=detected2::true"
fi
if [[ $(echo ${OUTPUT_JSON3} | jq -c '. | length') -gt 0 ]]; then
echo "::set-output name=detected3::true"
fi
if [[ $(echo ${OUTPUT_JSON4} | jq -c '. | length') -gt 0 ]]; then
echo "::set-output name=detected4::true"
fi
if [[ $(echo ${OUTPUT_JSON5} | jq -c '. | length') -gt 0 ]]; then
echo "::set-output name=detected5::true"
fi
if [[ $(echo ${OUTPUT_JSON6} | jq -c '. | length') -gt 0 ]]; then
echo "::set-output name=detected6::true"
fi
2022-03-30 14:54:57 -04:00
lint-charts1:
2022-03-30 13:59:15 -04:00
needs:
- generate-lint-matrix
2022-03-31 05:14:14 -04:00
if: needs.generate-lint-matrix.outputs.detected1 == 'true'
2022-03-30 15:01:19 -04:00
name: Lint charts Part 1
2022-03-30 13:59:15 -04:00
strategy:
2022-03-30 14:54:57 -04:00
matrix: ${{ fromJson(needs.generate-lint-matrix.outputs.matrix1) }}
2022-03-31 05:14:14 -04:00
fail-fast: false
2022-08-08 15:17:50 -04:00
max-parallel: 10
2022-03-30 13:59:15 -04:00
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
2022-03-30 13:59:15 -04:00
with:
fetch-depth: 0
ref: ${{ inputs.checkoutCommit }}
- name: lint Kubernetes tools
uses: yokawasa/action-setup-kube-tools@af4ebb1af1efd30c5bd84a2e9773355ad6362a33 # v0.9.3
2022-03-30 13:59:15 -04:00
with:
setup-tools: |
helmv3
helm: "3.8.0"
- uses: actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b # v4
2022-03-30 13:59:15 -04:00
with:
python-version: "3.10"
- name: Set up chart-testing
chore(deps): update helm/chart-testing-action action to v2.4.0 (#7889) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [helm/chart-testing-action](https://togithub.com/helm/chart-testing-action) | action | minor | `v2.3.1` -> `v2.4.0` | --- ### ⚠ Dependency Lookup Warnings ⚠ Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>helm/chart-testing-action</summary> ### [`v2.4.0`](https://togithub.com/helm/chart-testing-action/releases/tag/v2.4.0) [Compare Source](https://togithub.com/helm/chart-testing-action/compare/v2.3.1...v2.4.0) ##### What's Changed - Retry artifact downloads by [@&#8203;steven-sheehy](https://togithub.com/steven-sheehy) in [https://github.com/helm/chart-testing-action/pull/111](https://togithub.com/helm/chart-testing-action/pull/111) - fix example workflow by [@&#8203;CrowdSalat](https://togithub.com/CrowdSalat) in [https://github.com/helm/chart-testing-action/pull/115](https://togithub.com/helm/chart-testing-action/pull/115) - docs: only run chart lint if changed by [@&#8203;fty4](https://togithub.com/fty4) in [https://github.com/helm/chart-testing-action/pull/106](https://togithub.com/helm/chart-testing-action/pull/106) - docs: use GITHUB_OUTPUT in example workflow by [@&#8203;fty4](https://togithub.com/fty4) in [https://github.com/helm/chart-testing-action/pull/107](https://togithub.com/helm/chart-testing-action/pull/107) - Use cosign to verify the release and update chart-testing to v3.8.0 by [@&#8203;cpanato](https://togithub.com/cpanato) in [https://github.com/helm/chart-testing-action/pull/116](https://togithub.com/helm/chart-testing-action/pull/116) ##### New Contributors - [@&#8203;steven-sheehy](https://togithub.com/steven-sheehy) made their first contribution in [https://github.com/helm/chart-testing-action/pull/111](https://togithub.com/helm/chart-testing-action/pull/111) - [@&#8203;CrowdSalat](https://togithub.com/CrowdSalat) made their first contribution in [https://github.com/helm/chart-testing-action/pull/115](https://togithub.com/helm/chart-testing-action/pull/115) - [@&#8203;fty4](https://togithub.com/fty4) made their first contribution in [https://github.com/helm/chart-testing-action/pull/106](https://togithub.com/helm/chart-testing-action/pull/106) **Full Changelog**: https://github.com/helm/chart-testing-action/compare/v2...v2.4.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTMuMSIsInVwZGF0ZWRJblZlciI6IjM0LjE1My4xIn0=-->
2023-04-22 08:17:02 -04:00
uses: helm/chart-testing-action@e8788873172cb653a90ca2e819d79d65a66d4e76 # v2.4.0
2022-03-30 13:59:15 -04:00
- name: Run chart-testing (lint)
run: ct lint --config ".github/ct-lint.yaml" --charts "${{ matrix.chart }}" || ct lint --config ".github/ct-lint.yaml" --charts "${{ matrix.chart }}"
2022-03-30 14:54:57 -04:00
lint-charts2:
needs:
- generate-lint-matrix
2022-03-31 05:14:14 -04:00
if: needs.generate-lint-matrix.outputs.detected2 == 'true'
2022-03-30 15:01:19 -04:00
name: Lint charts Part 2
2022-03-30 14:54:57 -04:00
strategy:
matrix: ${{ fromJson(needs.generate-lint-matrix.outputs.matrix2) }}
2022-03-31 05:14:14 -04:00
fail-fast: false
2022-08-08 15:17:50 -04:00
max-parallel: 10
2022-03-30 14:54:57 -04:00
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
2022-03-30 14:54:57 -04:00
with:
fetch-depth: 0
ref: ${{ inputs.checkoutCommit }}
- name: lint Kubernetes tools
uses: yokawasa/action-setup-kube-tools@af4ebb1af1efd30c5bd84a2e9773355ad6362a33 # v0.9.3
2022-03-30 14:54:57 -04:00
with:
setup-tools: |
helmv3
helm: "3.8.0"
- uses: actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b # v4
2022-03-30 14:54:57 -04:00
with:
python-version: "3.10"
- name: Set up chart-testing
chore(deps): update helm/chart-testing-action action to v2.4.0 (#7889) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [helm/chart-testing-action](https://togithub.com/helm/chart-testing-action) | action | minor | `v2.3.1` -> `v2.4.0` | --- ### ⚠ Dependency Lookup Warnings ⚠ Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>helm/chart-testing-action</summary> ### [`v2.4.0`](https://togithub.com/helm/chart-testing-action/releases/tag/v2.4.0) [Compare Source](https://togithub.com/helm/chart-testing-action/compare/v2.3.1...v2.4.0) ##### What's Changed - Retry artifact downloads by [@&#8203;steven-sheehy](https://togithub.com/steven-sheehy) in [https://github.com/helm/chart-testing-action/pull/111](https://togithub.com/helm/chart-testing-action/pull/111) - fix example workflow by [@&#8203;CrowdSalat](https://togithub.com/CrowdSalat) in [https://github.com/helm/chart-testing-action/pull/115](https://togithub.com/helm/chart-testing-action/pull/115) - docs: only run chart lint if changed by [@&#8203;fty4](https://togithub.com/fty4) in [https://github.com/helm/chart-testing-action/pull/106](https://togithub.com/helm/chart-testing-action/pull/106) - docs: use GITHUB_OUTPUT in example workflow by [@&#8203;fty4](https://togithub.com/fty4) in [https://github.com/helm/chart-testing-action/pull/107](https://togithub.com/helm/chart-testing-action/pull/107) - Use cosign to verify the release and update chart-testing to v3.8.0 by [@&#8203;cpanato](https://togithub.com/cpanato) in [https://github.com/helm/chart-testing-action/pull/116](https://togithub.com/helm/chart-testing-action/pull/116) ##### New Contributors - [@&#8203;steven-sheehy](https://togithub.com/steven-sheehy) made their first contribution in [https://github.com/helm/chart-testing-action/pull/111](https://togithub.com/helm/chart-testing-action/pull/111) - [@&#8203;CrowdSalat](https://togithub.com/CrowdSalat) made their first contribution in [https://github.com/helm/chart-testing-action/pull/115](https://togithub.com/helm/chart-testing-action/pull/115) - [@&#8203;fty4](https://togithub.com/fty4) made their first contribution in [https://github.com/helm/chart-testing-action/pull/106](https://togithub.com/helm/chart-testing-action/pull/106) **Full Changelog**: https://github.com/helm/chart-testing-action/compare/v2...v2.4.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTMuMSIsInVwZGF0ZWRJblZlciI6IjM0LjE1My4xIn0=-->
2023-04-22 08:17:02 -04:00
uses: helm/chart-testing-action@e8788873172cb653a90ca2e819d79d65a66d4e76 # v2.4.0
2022-03-30 14:54:57 -04:00
- name: Run chart-testing (lint)
run: ct lint --config ".github/ct-lint.yaml" --charts "${{ matrix.chart }}" || ct lint --config ".github/ct-lint.yaml" --charts "${{ matrix.chart }}"
2022-03-30 13:59:15 -04:00
lint-charts3:
needs:
- generate-lint-matrix
if: needs.generate-lint-matrix.outputs.detected3 == 'true'
name: Lint charts Part 3
strategy:
matrix: ${{ fromJson(needs.generate-lint-matrix.outputs.matrix3) }}
fail-fast: false
2022-08-08 15:17:50 -04:00
max-parallel: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
with:
fetch-depth: 0
ref: ${{ inputs.checkoutCommit }}
- name: lint Kubernetes tools
uses: yokawasa/action-setup-kube-tools@af4ebb1af1efd30c5bd84a2e9773355ad6362a33 # v0.9.3
with:
setup-tools: |
helmv3
helm: "3.8.0"
- uses: actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b # v4
with:
python-version: "3.10"
- name: Set up chart-testing
chore(deps): update helm/chart-testing-action action to v2.4.0 (#7889) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [helm/chart-testing-action](https://togithub.com/helm/chart-testing-action) | action | minor | `v2.3.1` -> `v2.4.0` | --- ### ⚠ Dependency Lookup Warnings ⚠ Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>helm/chart-testing-action</summary> ### [`v2.4.0`](https://togithub.com/helm/chart-testing-action/releases/tag/v2.4.0) [Compare Source](https://togithub.com/helm/chart-testing-action/compare/v2.3.1...v2.4.0) ##### What's Changed - Retry artifact downloads by [@&#8203;steven-sheehy](https://togithub.com/steven-sheehy) in [https://github.com/helm/chart-testing-action/pull/111](https://togithub.com/helm/chart-testing-action/pull/111) - fix example workflow by [@&#8203;CrowdSalat](https://togithub.com/CrowdSalat) in [https://github.com/helm/chart-testing-action/pull/115](https://togithub.com/helm/chart-testing-action/pull/115) - docs: only run chart lint if changed by [@&#8203;fty4](https://togithub.com/fty4) in [https://github.com/helm/chart-testing-action/pull/106](https://togithub.com/helm/chart-testing-action/pull/106) - docs: use GITHUB_OUTPUT in example workflow by [@&#8203;fty4](https://togithub.com/fty4) in [https://github.com/helm/chart-testing-action/pull/107](https://togithub.com/helm/chart-testing-action/pull/107) - Use cosign to verify the release and update chart-testing to v3.8.0 by [@&#8203;cpanato](https://togithub.com/cpanato) in [https://github.com/helm/chart-testing-action/pull/116](https://togithub.com/helm/chart-testing-action/pull/116) ##### New Contributors - [@&#8203;steven-sheehy](https://togithub.com/steven-sheehy) made their first contribution in [https://github.com/helm/chart-testing-action/pull/111](https://togithub.com/helm/chart-testing-action/pull/111) - [@&#8203;CrowdSalat](https://togithub.com/CrowdSalat) made their first contribution in [https://github.com/helm/chart-testing-action/pull/115](https://togithub.com/helm/chart-testing-action/pull/115) - [@&#8203;fty4](https://togithub.com/fty4) made their first contribution in [https://github.com/helm/chart-testing-action/pull/106](https://togithub.com/helm/chart-testing-action/pull/106) **Full Changelog**: https://github.com/helm/chart-testing-action/compare/v2...v2.4.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTMuMSIsInVwZGF0ZWRJblZlciI6IjM0LjE1My4xIn0=-->
2023-04-22 08:17:02 -04:00
uses: helm/chart-testing-action@e8788873172cb653a90ca2e819d79d65a66d4e76 # v2.4.0
- name: Run chart-testing (lint)
run: ct lint --config ".github/ct-lint.yaml" --charts "${{ matrix.chart }}" || ct lint --config ".github/ct-lint.yaml" --charts "${{ matrix.chart }}"
lint-charts4:
needs:
- generate-lint-matrix
if: needs.generate-lint-matrix.outputs.detected4 == 'true'
name: Lint charts Part 4
strategy:
matrix: ${{ fromJson(needs.generate-lint-matrix.outputs.matrix4) }}
fail-fast: false
2022-08-08 15:17:50 -04:00
max-parallel: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
with:
fetch-depth: 0
ref: ${{ inputs.checkoutCommit }}
- name: lint Kubernetes tools
uses: yokawasa/action-setup-kube-tools@af4ebb1af1efd30c5bd84a2e9773355ad6362a33 # v0.9.3
with:
setup-tools: |
helmv3
helm: "3.8.0"
- uses: actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b # v4
with:
python-version: "3.10"
- name: Set up chart-testing
chore(deps): update helm/chart-testing-action action to v2.4.0 (#7889) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [helm/chart-testing-action](https://togithub.com/helm/chart-testing-action) | action | minor | `v2.3.1` -> `v2.4.0` | --- ### ⚠ Dependency Lookup Warnings ⚠ Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>helm/chart-testing-action</summary> ### [`v2.4.0`](https://togithub.com/helm/chart-testing-action/releases/tag/v2.4.0) [Compare Source](https://togithub.com/helm/chart-testing-action/compare/v2.3.1...v2.4.0) ##### What's Changed - Retry artifact downloads by [@&#8203;steven-sheehy](https://togithub.com/steven-sheehy) in [https://github.com/helm/chart-testing-action/pull/111](https://togithub.com/helm/chart-testing-action/pull/111) - fix example workflow by [@&#8203;CrowdSalat](https://togithub.com/CrowdSalat) in [https://github.com/helm/chart-testing-action/pull/115](https://togithub.com/helm/chart-testing-action/pull/115) - docs: only run chart lint if changed by [@&#8203;fty4](https://togithub.com/fty4) in [https://github.com/helm/chart-testing-action/pull/106](https://togithub.com/helm/chart-testing-action/pull/106) - docs: use GITHUB_OUTPUT in example workflow by [@&#8203;fty4](https://togithub.com/fty4) in [https://github.com/helm/chart-testing-action/pull/107](https://togithub.com/helm/chart-testing-action/pull/107) - Use cosign to verify the release and update chart-testing to v3.8.0 by [@&#8203;cpanato](https://togithub.com/cpanato) in [https://github.com/helm/chart-testing-action/pull/116](https://togithub.com/helm/chart-testing-action/pull/116) ##### New Contributors - [@&#8203;steven-sheehy](https://togithub.com/steven-sheehy) made their first contribution in [https://github.com/helm/chart-testing-action/pull/111](https://togithub.com/helm/chart-testing-action/pull/111) - [@&#8203;CrowdSalat](https://togithub.com/CrowdSalat) made their first contribution in [https://github.com/helm/chart-testing-action/pull/115](https://togithub.com/helm/chart-testing-action/pull/115) - [@&#8203;fty4](https://togithub.com/fty4) made their first contribution in [https://github.com/helm/chart-testing-action/pull/106](https://togithub.com/helm/chart-testing-action/pull/106) **Full Changelog**: https://github.com/helm/chart-testing-action/compare/v2...v2.4.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTMuMSIsInVwZGF0ZWRJblZlciI6IjM0LjE1My4xIn0=-->
2023-04-22 08:17:02 -04:00
uses: helm/chart-testing-action@e8788873172cb653a90ca2e819d79d65a66d4e76 # v2.4.0
- name: Run chart-testing (lint)
run: ct lint --config ".github/ct-lint.yaml" --charts "${{ matrix.chart }}" || ct lint --config ".github/ct-lint.yaml" --charts "${{ matrix.chart }}"
lint-charts5:
needs:
- generate-lint-matrix
if: needs.generate-lint-matrix.outputs.detected5 == 'true'
name: Lint charts Part 5
strategy:
matrix: ${{ fromJson(needs.generate-lint-matrix.outputs.matrix5) }}
fail-fast: false
2022-08-08 15:17:50 -04:00
max-parallel: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
with:
fetch-depth: 0
ref: ${{ inputs.checkoutCommit }}
- name: lint Kubernetes tools
uses: yokawasa/action-setup-kube-tools@af4ebb1af1efd30c5bd84a2e9773355ad6362a33 # v0.9.3
with:
setup-tools: |
helmv3
helm: "3.8.0"
- uses: actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b # v4
with:
python-version: "3.10"
- name: Set up chart-testing
chore(deps): update helm/chart-testing-action action to v2.4.0 (#7889) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [helm/chart-testing-action](https://togithub.com/helm/chart-testing-action) | action | minor | `v2.3.1` -> `v2.4.0` | --- ### ⚠ Dependency Lookup Warnings ⚠ Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>helm/chart-testing-action</summary> ### [`v2.4.0`](https://togithub.com/helm/chart-testing-action/releases/tag/v2.4.0) [Compare Source](https://togithub.com/helm/chart-testing-action/compare/v2.3.1...v2.4.0) ##### What's Changed - Retry artifact downloads by [@&#8203;steven-sheehy](https://togithub.com/steven-sheehy) in [https://github.com/helm/chart-testing-action/pull/111](https://togithub.com/helm/chart-testing-action/pull/111) - fix example workflow by [@&#8203;CrowdSalat](https://togithub.com/CrowdSalat) in [https://github.com/helm/chart-testing-action/pull/115](https://togithub.com/helm/chart-testing-action/pull/115) - docs: only run chart lint if changed by [@&#8203;fty4](https://togithub.com/fty4) in [https://github.com/helm/chart-testing-action/pull/106](https://togithub.com/helm/chart-testing-action/pull/106) - docs: use GITHUB_OUTPUT in example workflow by [@&#8203;fty4](https://togithub.com/fty4) in [https://github.com/helm/chart-testing-action/pull/107](https://togithub.com/helm/chart-testing-action/pull/107) - Use cosign to verify the release and update chart-testing to v3.8.0 by [@&#8203;cpanato](https://togithub.com/cpanato) in [https://github.com/helm/chart-testing-action/pull/116](https://togithub.com/helm/chart-testing-action/pull/116) ##### New Contributors - [@&#8203;steven-sheehy](https://togithub.com/steven-sheehy) made their first contribution in [https://github.com/helm/chart-testing-action/pull/111](https://togithub.com/helm/chart-testing-action/pull/111) - [@&#8203;CrowdSalat](https://togithub.com/CrowdSalat) made their first contribution in [https://github.com/helm/chart-testing-action/pull/115](https://togithub.com/helm/chart-testing-action/pull/115) - [@&#8203;fty4](https://togithub.com/fty4) made their first contribution in [https://github.com/helm/chart-testing-action/pull/106](https://togithub.com/helm/chart-testing-action/pull/106) **Full Changelog**: https://github.com/helm/chart-testing-action/compare/v2...v2.4.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTMuMSIsInVwZGF0ZWRJblZlciI6IjM0LjE1My4xIn0=-->
2023-04-22 08:17:02 -04:00
uses: helm/chart-testing-action@e8788873172cb653a90ca2e819d79d65a66d4e76 # v2.4.0
- name: Run chart-testing (lint)
run: ct lint --config ".github/ct-lint.yaml" --charts "${{ matrix.chart }}" || ct lint --config ".github/ct-lint.yaml" --charts "${{ matrix.chart }}"
lint-charts6:
needs:
- generate-lint-matrix
if: needs.generate-lint-matrix.outputs.detected6 == 'true'
name: Lint charts Part 6
strategy:
matrix: ${{ fromJson(needs.generate-lint-matrix.outputs.matrix6) }}
fail-fast: false
2022-08-08 15:17:50 -04:00
max-parallel: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
with:
fetch-depth: 0
ref: ${{ inputs.checkoutCommit }}
- name: lint Kubernetes tools
uses: yokawasa/action-setup-kube-tools@af4ebb1af1efd30c5bd84a2e9773355ad6362a33 # v0.9.3
with:
setup-tools: |
helmv3
helm: "3.8.0"
- uses: actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b # v4
with:
python-version: "3.10"
- name: Set up chart-testing
chore(deps): update helm/chart-testing-action action to v2.4.0 (#7889) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [helm/chart-testing-action](https://togithub.com/helm/chart-testing-action) | action | minor | `v2.3.1` -> `v2.4.0` | --- ### ⚠ Dependency Lookup Warnings ⚠ Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>helm/chart-testing-action</summary> ### [`v2.4.0`](https://togithub.com/helm/chart-testing-action/releases/tag/v2.4.0) [Compare Source](https://togithub.com/helm/chart-testing-action/compare/v2.3.1...v2.4.0) ##### What's Changed - Retry artifact downloads by [@&#8203;steven-sheehy](https://togithub.com/steven-sheehy) in [https://github.com/helm/chart-testing-action/pull/111](https://togithub.com/helm/chart-testing-action/pull/111) - fix example workflow by [@&#8203;CrowdSalat](https://togithub.com/CrowdSalat) in [https://github.com/helm/chart-testing-action/pull/115](https://togithub.com/helm/chart-testing-action/pull/115) - docs: only run chart lint if changed by [@&#8203;fty4](https://togithub.com/fty4) in [https://github.com/helm/chart-testing-action/pull/106](https://togithub.com/helm/chart-testing-action/pull/106) - docs: use GITHUB_OUTPUT in example workflow by [@&#8203;fty4](https://togithub.com/fty4) in [https://github.com/helm/chart-testing-action/pull/107](https://togithub.com/helm/chart-testing-action/pull/107) - Use cosign to verify the release and update chart-testing to v3.8.0 by [@&#8203;cpanato](https://togithub.com/cpanato) in [https://github.com/helm/chart-testing-action/pull/116](https://togithub.com/helm/chart-testing-action/pull/116) ##### New Contributors - [@&#8203;steven-sheehy](https://togithub.com/steven-sheehy) made their first contribution in [https://github.com/helm/chart-testing-action/pull/111](https://togithub.com/helm/chart-testing-action/pull/111) - [@&#8203;CrowdSalat](https://togithub.com/CrowdSalat) made their first contribution in [https://github.com/helm/chart-testing-action/pull/115](https://togithub.com/helm/chart-testing-action/pull/115) - [@&#8203;fty4](https://togithub.com/fty4) made their first contribution in [https://github.com/helm/chart-testing-action/pull/106](https://togithub.com/helm/chart-testing-action/pull/106) **Full Changelog**: https://github.com/helm/chart-testing-action/compare/v2...v2.4.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTMuMSIsInVwZGF0ZWRJblZlciI6IjM0LjE1My4xIn0=-->
2023-04-22 08:17:02 -04:00
uses: helm/chart-testing-action@e8788873172cb653a90ca2e819d79d65a66d4e76 # v2.4.0
- name: Run chart-testing (lint)
run: ct lint --config ".github/ct-lint.yaml" --charts "${{ matrix.chart }}" || ct lint --config ".github/ct-lint.yaml" --charts "${{ matrix.chart }}"
2022-03-30 13:59:15 -04:00
# Summarize matrix https://github.community/t/status-check-for-a-matrix-jobs/127354/7
lint_success:
needs:
- generate-lint-matrix
2022-03-30 14:54:57 -04:00
- lint-charts1
- lint-charts2
- lint-charts3
- lint-charts4
- lint-charts5
- lint-charts6
2022-03-30 13:59:15 -04:00
if: |
always()
name: Lint successful
runs-on: ubuntu-latest
steps:
- name: Check lint matrix status
run: |
res1="${{needs.lint-charts1.result}}"
res2="${{needs.lint-charts2.result}}"
res3="${{needs.lint-charts3.result}}"
res4="${{needs.lint-charts4.result}}"
res5="${{needs.lint-charts5.result}}"
res6="${{needs.lint-charts6.result}}"
if [[ $res1 == "success" || $res1 == "skipped" ]]; then
echo "lint tests 1 successfull..."
else
echo "lint tests 1 error, stopping due to failure..."
exit 1
fi
if [[ $res2 == "success" || $res2 == "skipped" ]]; then
echo "lint tests 2 successfull..."
else
echo "lint tests 2 error, stopping due to failure..."
exit 1
fi
if [[ $res3 == "success" || $res3 == "skipped" ]]; then
echo "lint tests 3 successfull..."
else
echo "lint tests 3 error, stopping due to failure..."
exit 1
fi
if [[ $res4 == "success" || $res4 == "skipped" ]]; then
echo "lint tests 4 successfull..."
else
echo "lint tests 4 error, stopping due to failure..."
exit 1
fi
if [[ $res5 == "success" || $res5 == "skipped" ]]; then
echo "lint tests 5 successfull..."
else
echo "lint tests 5 error, stopping due to failure..."
exit 1
fi
if [[ $res6 == "success" || $res6 == "skipped" ]]; then
echo "lint tests 6 successfull..."
else
echo "lint tests 6 error, stopping due to failure..."
exit 1
fi
- uses: vishnudxb/cancel-workflow@c3c77eb4383ba7d023e6614a07d94fe990501ac6 # tag=v1.2
if: failure()
with:
repo: truecharts/chart
workflow_id: ${{ github.run_id }}
access_token: ${{ github.token }}