From e97b56cc724548eb6f38553fccdce4655698eec8 Mon Sep 17 00:00:00 2001 From: JeffMboya Date: Tue, 10 Sep 2024 17:37:45 +0300 Subject: [PATCH] use config file for ct Signed-off-by: JeffMboya --- .github/workflows/lint-test.yaml | 6 ++++-- ct.yml | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 ct.yml diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index e444827f..c3293dc1 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -27,6 +27,8 @@ jobs: helm repo add hashicorp https://helm.releases.hashicorp.com helm repo update + # Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and + # yamllint (https://github.com/adrienverge/yamllint) which require Python - uses: actions/setup-python@v5 with: python-version: "3.x" @@ -46,7 +48,7 @@ jobs: - name: Run chart-testing (lint) if: steps.list-changed.outputs.changed == 'true' run: | - ct lint --target-branch ${{ github.event.repository.default_branch }} --charts charts/magistrala + ct lint --config ct.yaml - name: Create kind cluster if: steps.list-changed.outputs.changed == 'true' @@ -55,4 +57,4 @@ jobs: - name: Run chart-testing (install) if: steps.list-changed.outputs.changed == 'true' run: | - ct install --target-branch ${{ github.event.repository.default_branch }} --chart-dirs charts/magistrala helm-extra-args: --timeout 600s check-version-increment: false + ct install --config ct.yaml diff --git a/ct.yml b/ct.yml new file mode 100644 index 00000000..3581b939 --- /dev/null +++ b/ct.yml @@ -0,0 +1,6 @@ +# See https://github.com/helm/chart-testing#configuration +remote: origin +target-branch: master +chart-dirs: + - charts/magistrala +helm-extra-args: --timeout 600s \ No newline at end of file