Skip to content

Commit

Permalink
Merge pull request #160 from maykinmedia/fix/63-add-linter
Browse files Browse the repository at this point in the history
[#63] Add lint to CI
  • Loading branch information
sjoerdie authored Jan 6, 2025
2 parents 6767531 + 3b089e6 commit 68192d8
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 3 deletions.
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

0 comments on commit 68192d8

Please sign in to comment.