@@ -35,14 +35,14 @@ jobs:
3535 id : list-changed
3636 run : |
3737 ## If executed with debug this won't work anymore.
38- changed=$(ct --config ./.github/configs/ct-lint.yaml list-changed)
38+ changed=$(ct --config ./.github/configs/ct-lint.yaml --target-branch ${{ github.base_ref }} list-changed)
3939 charts=$(echo "$changed" | tr '\n' ' ' | xargs)
4040 if [[ -n "$changed" ]]; then
4141 echo "::set-output name=changed::true"
4242 echo "::set-output name=changed_charts::$charts"
4343 fi
4444 - name : Run chart-testing (lint)
45- run : ct lint --debug --config ./.github/configs/ct-lint.yaml --lint-conf ./.github/configs/lintconf.yaml
45+ run : ct lint --debug --config ./.github/configs/ct-lint.yaml --target-branch ${{ github.base_ref }} -- lint-conf ./.github/configs/lintconf.yaml
4646
4747 - name : Run docs-testing (helm-docs)
4848 id : helm-docs
6262 with :
6363 config : .github/configs/kind-config.yaml
6464
65- - name : Deploy latest ArgoCD CRDs when testing ArgoCD extensions
66- if : |
67- contains(steps.list-changed.outputs.changed_charts, 'argocd-image-updater') ||
68- contains(steps.list-changed.outputs.changed_charts, 'argocd-apps')
69- run : |
70- helm repo add dandydeveloper https://dandydeveloper.github.io/charts/
71- helm dependency build charts/argo-cd/
72- helm template charts/argo-cd/ -s templates/crds/* | kubectl apply -f -
73-
7465 - name : Skip HPA tests of ArgoCD
7566 if : contains(steps.list-changed.outputs.changed_charts, 'argo-cd')
7667 run : |
8576 helm install redis bitnami/redis --wait --namespace redis --set auth.password=argocd --set architecture=standalone
8677
8778 - name : Run chart-testing (install)
88- run : ct install --config ./.github/configs/ct-install.yaml
89- if : steps.list-changed.outputs.changed == 'true'
79+ run : ct install --config ./.github/configs/ct-install.yaml --target-branch ${{ github.base_ref }}
80+ if : steps.list-changed.outputs.changed == 'true'
0 commit comments