Skip to content

Commit

Permalink
feat: Lint Helm chart files (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjjaramillo authored Jun 21, 2024
1 parent 939f021 commit 5bfb8e3
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,33 @@ jobs:
skip-cache: true
skip-save-cache: true

lint-charts:
name: Lint Helm charts
runs-on: ubuntu-latest
steps:
- name: Checkout GitHub Repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Helm lint
run: |
helm lint charts/**
- name: Install Helm Docs
# Use syntax ${version} instead of $version
# In certain contexts, only the less ambiguous ${version} form works
# Source: https://tldp.org/LDP/abs/html/parameter-substitution.html
run: |
version="v1.13.1"
stripped=$( echo "${version}" | sed s'/v//' )
wget https://github.com/norwoodj/helm-docs/releases/download/${version}/helm-docs_${stripped}_Linux_x86_64.tar.gz
tar --extract --verbose --file="helm-docs_${stripped}_Linux_x86_64.tar.gz" helm-docs
sudo mv helm-docs /usr/local/sbin
- name: Verify Helm docs are up to date
run: |
helm-docs
git diff --exit-code -- charts/k8s-agents-operator/README.md
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5bfb8e3

Please sign in to comment.