Skip to content
Draft
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
60 changes: 60 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Lint Helm Charts
on:
pull_request:

jobs:
lint-charts:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@v4
with:
version: 'latest'

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Set up chart-testing
uses: helm/chart-testing-action@v2

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --chart-dirs charts)
if [[ -n "$changed" ]]; then
echo "changed=true" >> $GITHUB_OUTPUT
fi

- name: Create kind cluster
if: steps.list-changed.outputs.changed == 'true'
uses: helm/kind-action@v1.12.0

- name: Add Helm repositories
if: steps.list-changed.outputs.changed == 'true'
run: |
find charts -name "requirements.yaml" -exec grep 'repository: https://' {} + | awk '{print $2}' | sort -u | while read -r repo; do
repo_name=$(echo "$repo" | sed -e 's,https://,,; s,http://,,; s,/.*,,; s,\..*,,')
helm repo add "$repo_name" "$repo"
done

- name: Build Helm dependencies
if: steps.list-changed.outputs.changed == 'true'
run: |
for chart in $(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --chart-dirs charts); do
helm dependency build "$chart"
done

- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: |
ct lint-and-install \
--check-version-increment=true \
--target-branch ${{ github.event.repository.default_branch }} \
--chart-dirs charts
2 changes: 1 addition & 1 deletion charts/buildbuddy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: BuildBuddy Open Source
name: buildbuddy
version: 0.0.328 # Chart version
version: 0.0.329 # Chart version
appVersion: 2.180.0 # Version of deployed app
keywords:
- buildbuddy
Expand Down
1 change: 1 addition & 0 deletions charts/buildbuddy/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This is a test comment to trigger CI.
## Default values for BuildBuddy.
## This is a YAML-formatted file.
## Declare variables to be passed into your templates.
Expand Down
Loading