File tree Expand file tree Collapse file tree 4 files changed +90
-61
lines changed Expand file tree Collapse file tree 4 files changed +90
-61
lines changed Original file line number Diff line number Diff line change 1+ name : Lint Chart (Common)
2+
3+ on :
4+ workflow_call :
5+ inputs :
6+ chart_name :
7+ description : ' Name of the chart to lint'
8+ required : true
9+ type : string
10+
11+ permissions :
12+ contents : read
13+
14+ env :
15+ _CHART_PATH : charts/${{ inputs.chart_name }}
16+
17+ jobs :
18+ lint :
19+ name : Lint Helm chart
20+ runs-on : ubuntu-24.04
21+ permissions :
22+ contents : read
23+ steps :
24+ - name : Checkout repo
25+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26+ with :
27+ fetch-depth : 0
28+ persist-credentials : false
29+
30+ - name : Set up Helm
31+ uses : Azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1
32+ with :
33+ version : ' v3.19.0'
34+
35+ - name : Set up chart-testing
36+ uses : helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # v2.7.0
37+
38+ - name : Run chart-testing (lint)
39+ env :
40+ CT_CHECK_VERSION_INCREMENT : false
41+ _DEFAULT_BRANCH : ${{ github.event.repository.default_branch }}
42+ run : ct lint --charts "$_CHART_PATH"
Original file line number Diff line number Diff line change 1+ name : Lint self-host
2+
3+ on :
4+ pull_request :
5+ paths :
6+ - " charts/self-host/**"
7+ - " .github/workflows/lint-self-host.yml"
8+ - " .github/workflows/_lint_chart.yml"
9+ push :
10+ branches :
11+ - main
12+ paths :
13+ - " charts/self-host/**"
14+ workflow_dispatch :
15+
16+ permissions :
17+ contents : read
18+
19+ jobs :
20+ lint-self-host :
21+ name : Lint self-host chart
22+ uses : ./.github/workflows/_lint_chart.yml
23+ with :
24+ chart_name : self-host
Original file line number Diff line number Diff line change 1+ name : Lint sm-operator
2+
3+ on :
4+ pull_request :
5+ paths :
6+ - " charts/sm-operator/**"
7+ - " .github/workflows/lint-sm-operator.yml"
8+ - " .github/workflows/_lint_chart.yml"
9+ push :
10+ branches :
11+ - main
12+ paths :
13+ - " charts/sm-operator/**"
14+ workflow_dispatch :
15+
16+ permissions :
17+ contents : read
18+
19+ jobs :
20+ lint-sm-operator :
21+ name : Lint sm-operator chart
22+ uses : ./.github/workflows/_lint_chart.yml
23+ with :
24+ chart_name : sm-operator
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments