Skip to content

Commit 21da5a1

Browse files
authored
ci: Fix "ct lint" action (#1680)
* Fix ct and pin actions to SHA. Signed-off-by: Josh Baird <[email protected]> * Fake helm change. Signed-off-by: Josh Baird <[email protected]> * Fake helm change. Signed-off-by: Josh Baird <[email protected]> * Use parent directory. Signed-off-by: Josh Baird <[email protected]> * Revert fake changes. Signed-off-by: Josh Baird <[email protected]> * Fix ct.yaml. Signed-off-by: Josh Baird <[email protected]> * Fake helm change. Signed-off-by: Josh Baird <[email protected]> * Debug. Signed-off-by: Josh Baird <[email protected]> * Debug. Signed-off-by: Josh Baird <[email protected]> * Debug. Signed-off-by: Josh Baird <[email protected]> * Debug. Signed-off-by: Josh Baird <[email protected]> * Debug. Signed-off-by: Josh Baird <[email protected]> * Add fake label. Signed-off-by: Josh Baird <[email protected]> * Debug. Signed-off-by: Josh Baird <[email protected]> * Move ct.yaml.gp Signed-off-by: Josh Baird <[email protected]> * Move ct.yaml.gp Signed-off-by: Josh Baird <[email protected]> * Test change. Signed-off-by: Josh Baird <[email protected]> * Blah. Signed-off-by: Josh Baird <[email protected]> * Reset. Signed-off-by: Josh Baird <[email protected]> * Reset. Signed-off-by: Josh Baird <[email protected]> * Reset. Signed-off-by: Josh Baird <[email protected]> * Reset. Signed-off-by: Josh Baird <[email protected]> * Revert fake changes. Signed-off-by: Josh Baird <[email protected]> --------- Signed-off-by: Josh Baird <[email protected]>
1 parent 15faed8 commit 21da5a1

File tree

3 files changed

+15
-18
lines changed

3 files changed

+15
-18
lines changed

.github/ct.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# .github/ct.yaml
2+
3+
remote: origin
4+
target-branch: master # change to main if your default branch is main
5+
6+
chart-dirs:
7+
- charts/fluent-operator
8+
9+
check-version-increment: true
10+
validate-maintainers: true

.github/workflows/lint-test.yaml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,23 @@ jobs:
1616
with:
1717
version: v3.17.2
1818

19-
# Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and
20-
# yamllint (https://github.com/adrienverge/yamllint) which require Python
21-
- name: Set up Python
22-
uses: actions/setup-python@v5
23-
with:
24-
python-version: 3.9
25-
2619
- name: Set up chart-testing
27-
uses: helm/[email protected]
20+
uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # v2.7.0
2821

2922
- name: Run chart-testing (list-changed)
3023
id: list-changed
3124
run: |
32-
changed=$(ct list-changed --chart-dirs charts/fluent-operator --config charts/ct.yaml)
25+
changed=$(ct list-changed --chart-dirs charts/fluent-operator --config .github/ct.yaml)
3326
if [[ -n "$changed" ]]; then
3427
echo "changed=true" >> $GITHUB_OUTPUT
3528
fi
3629
3730
- name: Run chart-testing (lint)
38-
run: ct lint --chart-dirs charts/fluent-operator --config charts/ct.yaml
31+
run: ct lint --chart-dirs charts --config .github/ct.yaml
3932

4033
- name: Create kind cluster
41-
uses: helm/[email protected]
34+
uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 #v1.12.0
4235
if: steps.list-changed.outputs.changed == 'true'
4336

4437
- name: Run chart-testing (install)
45-
run: ct install --chart-dirs charts/fluent-operator --config charts/ct.yaml
38+
run: ct install --chart-dirs charts/fluent-operator --config .github/ct.yaml

charts/ct.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)