Skip to content

Commit d605eab

Browse files
committed
ci: add helm lint workflow triggered on helm chart changes
1 parent d62e9c0 commit d605eab

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

.github/workflows/helm-lint.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
name: Helm Lint
5+
6+
on:
7+
push:
8+
branches:
9+
- "pull-request/[0-9]+"
10+
paths:
11+
- "deploy/helm/**"
12+
workflow_dispatch:
13+
14+
env:
15+
MISE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
17+
permissions:
18+
contents: read
19+
packages: read
20+
21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.ref }}
23+
cancel-in-progress: true
24+
25+
jobs:
26+
pr_metadata:
27+
name: Resolve PR metadata
28+
runs-on: ubuntu-latest
29+
permissions:
30+
contents: read
31+
pull-requests: read
32+
outputs:
33+
should_run: ${{ steps.gate.outputs.should_run }}
34+
steps:
35+
- uses: actions/checkout@v6
36+
37+
- id: gate
38+
uses: ./.github/actions/pr-gate
39+
40+
helm-lint:
41+
name: Helm Lint
42+
needs: pr_metadata
43+
if: needs.pr_metadata.outputs.should_run == 'true'
44+
runs-on: linux-amd64-cpu8
45+
container:
46+
image: ghcr.io/nvidia/openshell/ci:latest
47+
credentials:
48+
username: ${{ github.actor }}
49+
password: ${{ secrets.GITHUB_TOKEN }}
50+
steps:
51+
- uses: actions/checkout@v6
52+
53+
- name: Install tools
54+
run: mise install --locked
55+
56+
- name: Lint Helm chart
57+
run: mise run helm:lint

0 commit comments

Comments
 (0)