Skip to content

Commit 428758f

Browse files
authored
[BRE-1232] Splitting up linting and removing list changed check (#363)
1 parent ea7e5b9 commit 428758f

File tree

4 files changed

+90
-61
lines changed

4 files changed

+90
-61
lines changed

.github/workflows/_lint_chart.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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

.github/workflows/linter.yml

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

0 commit comments

Comments
 (0)