mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-02-14 09:59:57 +00:00
* chore(repo): rework makefile and add renovate mangers for pre-commit and makefile binaries Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore(repo): add renovate managers Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore(repo): add renovate managers Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore(repo): add renovate managers Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore(repo): add renovate managers Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore(repo): add renovate managers Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore(repo): add renovate managers Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore(repo): add renovate managers Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> --------- Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
72 lines
2.3 KiB
YAML
72 lines
2.3 KiB
YAML
name: Test charts
|
|
permissions: {}
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- "main"
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
linter-artifacthub:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: artifacthub/ah
|
|
options: --user root
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
- name: Run ah lint
|
|
working-directory: ./charts/
|
|
run: ah lint
|
|
lint:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4
|
|
- name: Linting Chart
|
|
run: helm lint ./charts/capsule
|
|
- name: Setup Chart Linting
|
|
id: lint
|
|
uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # v2.7.0
|
|
- name: Run chart-testing (list-changed)
|
|
id: list-changed
|
|
run: |
|
|
changed=$(ct list-changed --config ./.github/configs/ct.yaml)
|
|
if [[ -n "$changed" ]]; then
|
|
echo "::set-output name=changed::true"
|
|
fi
|
|
- name: Run chart-testing (lint)
|
|
run: ct lint --debug --config ./.github/configs/ct.yaml --lint-conf ./.github/configs/lintconf.yaml
|
|
|
|
- name: Run docs-testing (helm-docs)
|
|
id: helm-docs
|
|
run: |
|
|
make helm-docs
|
|
if [[ $(git diff --stat) != '' ]]; then
|
|
echo -e '\033[0;31mDocumentation outdated! (Run make helm-docs locally and commit)\033[0m ❌'
|
|
git diff --color
|
|
exit 1
|
|
else
|
|
echo -e '\033[0;32mDocumentation up to date\033[0m ✔'
|
|
fi
|
|
- name: Run schema-testing (helm-schema)
|
|
id: helm-schema
|
|
run: |
|
|
make helm-schema
|
|
if [[ $(git diff --stat) != '' ]]; then
|
|
echo -e '\033[0;31mSchema outdated! (Run make helm-schema locally and commit)\033[0m ❌'
|
|
git diff --color
|
|
exit 1
|
|
else
|
|
echo -e '\033[0;32mSchema up to date\033[0m ✔'
|
|
fi
|
|
- name: Run chart-testing (install)
|
|
run: HELM_KIND_CONFIG="./hack/kind-cluster.yml" make helm-test
|
|
if: steps.list-changed.outputs.changed == 'true'
|