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