Skip to content

Commit 896f893

Browse files
committed
replace command line arguments with config file
Signed-off-by: JeffMboya <[email protected]> use config file for ct Signed-off-by: JeffMboya <[email protected]> use config file for ct Signed-off-by: JeffMboya <[email protected]>
1 parent 94029b2 commit 896f893

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/lint-test.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
helm repo add hashicorp https://helm.releases.hashicorp.com
2828
helm repo update
2929
30+
# Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and
31+
# yamllint (https://github.com/adrienverge/yamllint) which require Python
3032
- uses: actions/setup-python@v5
3133
with:
3234
python-version: "3.x"
@@ -46,7 +48,7 @@ jobs:
4648
- name: Run chart-testing (lint)
4749
if: steps.list-changed.outputs.changed == 'true'
4850
run: |
49-
ct lint --target-branch ${{ github.event.repository.default_branch }} --charts charts/magistrala
51+
ct lint --config ct.yaml
5052
5153
- name: Create kind cluster
5254
if: steps.list-changed.outputs.changed == 'true'
@@ -55,4 +57,4 @@ jobs:
5557
- name: Run chart-testing (install)
5658
if: steps.list-changed.outputs.changed == 'true'
5759
run: |
58-
ct install --target-branch ${{ github.event.repository.default_branch }}
60+
ct install --config ct.yaml

ct.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# See https://github.com/helm/chart-testing#configuration
2+
remote: origin
3+
target-branch: master
4+
chart-dirs:
5+
- charts/magistrala
6+
helm-extra-args: --timeout 600s

0 commit comments

Comments
 (0)