Skip to content

Commit

Permalink
feat: Add actions workflow to linting helm charts
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-bisonai committed Feb 8, 2024
1 parent abe4e6a commit 351e0f6
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci.helm-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI Helm Lint

on:
workflow_dispatch:
push:
branches:
- i-56/feat/ci-helm-lint
paths:
- '**/*.yaml'
- '**/templates/*.tpl'
- '**/templates/*.yaml'
- '**/**/templates/*.yaml'
# pull_request:
# types:
# - closed
# branches:
# - main
# paths:
# - '**/*.yaml'
# - '**/templates/*.tpl'
# - '**/templates/*.yaml'
# - '**/**/templates/*.yaml'

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Helm
uses: azure/setup-helm@v1

- name: Install Helm dependencies
run: helm dependency update

- name: Run Helm lint
run: |
for chart in $(find . -name "Chart.yaml" -exec dirname {} \;); do
helm lint $chart
done

0 comments on commit 351e0f6

Please sign in to comment.