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

add chart-testing-action #1

Merged
merged 8 commits into from
Oct 12, 2024
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
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
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"