Skip to content

Commit

Permalink
add chart-testing-action (#1)
Browse files Browse the repository at this point in the history
* add chart-testing-action

See https://github.com/helm/chart-testing-action

* Revert this commit

* add new line at end of file

* fix lint

* fix deployment file

* set maintainer to github username

* add extra space

* fix service account
  • Loading branch information
acouvreur authored Oct 12, 2024
1 parent b13cc12 commit 0e2c7be
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 6 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Lint and Test Charts

on: pull_request

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

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

- uses: actions/setup-python@v5
with:
python-version: '3.x'
check-latest: true

- name: Set up chart-testing
uses: helm/[email protected]

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

- name: Create kind cluster
if: steps.list-changed.outputs.changed == 'true'
uses: helm/[email protected]

- name: Run chart-testing (install)
if: steps.list-changed.outputs.changed == 'true'
run: ct install --target-branch ${{ github.event.repository.default_branch }}
9 changes: 4 additions & 5 deletions charts/sablier/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

apiVersion: v2
name: sablier
version: 1.0.1
version: 1.0.2
appVersion: "1.8.0"
description: A free and open-source software to start workloads on demand and stop them after a period of inactivity.
type: application
Expand All @@ -11,8 +10,8 @@ home: https://acouvreur.github.io/sablier/#/
sources:
- "https://github.com/acouvreur/sablier"
maintainers:
- name: Alexis Couvreur
- name: acouvreur # Alexis Couvreur
email: [email protected]
url: https://www.alexiscouvreur.fr/
url: https://github.com/acouvreur
icon: https://raw.githubusercontent.com/sablierapp/artwork/refs/heads/main/icon/sablier-icon-color.png
deprecated: false
deprecated: false
File renamed without changes.
2 changes: 1 addition & 1 deletion charts/sablier/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ resources: {}
# cpu: "250m"
# limits:
# memory: "128Mi"
# cpu: "500m"
# cpu: "500m"

0 comments on commit 0e2c7be

Please sign in to comment.