Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GHA workflow to lint helm chart, and fix a bug in the chart #262

Merged
merged 2 commits into from
May 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/lint-helm-chart.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Lint helm chart

on:
push:
branches:
- master
paths:
- 'helm/sloop/**'
pull_request:
branches:
- "*"
paths:
- 'helm/sloop/**'

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup helm
uses: azure/setup-helm@v3
with:
version: 'v3.12.0'

- name: Lint chart
run: |
helm lint helm/sloop
2 changes: 1 addition & 1 deletion helm/sloop/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ rules:
{{- with .Values.clusterRole.apiGroups }}
- apiGroups:
{{- range . }}
- {{ . }}
- {{ . | quote }}
{{- end }}
resources:
- '*'
Expand Down
Loading