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

[#63] Add lint to CI #160

Merged
merged 2 commits into from
Jan 6, 2025
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
42 changes: 42 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Run CI

on:
push:
branches:
- main
tags:
- '*'
pull_request:

jobs:
linter:
name: Check Charts Syntax
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Helm
uses: azure/[email protected]
with:
version: v3.14.4

- name: Add dependency chart repos
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
- name: Run Helm lint
run: |
for CHART_DIR in ./charts/*; do
if [ -d "$CHART_DIR" ]; then
helm dependencies build "$CHART_DIR"
if [ $? -ne 0 ]; then
exit 1
fi
helm lint "$CHART_DIR"
if [ $? -ne 0 ]; then
exit 1
fi
fi
done
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ jobs:
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v1
uses: azure/setup-helm@v4.2.0
with:
version: v3.8.1
version: v3.14.4

- name: Add dependency chart repos
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.4.0
uses: helm/chart-releaser-action@v1.6.0
with:
charts_dir: charts
env:
Expand Down
Loading