Skip to content

fix: make crontab optional and mount only the file #55

fix: make crontab optional and mount only the file

fix: make crontab optional and mount only the file #55

Workflow file for this run

name: Helm Charts
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]
paths:
- "charts/**"
- ".github/workflows/**"
jobs:
test:
name: Test Helm Chart
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4
with:
fetch-depth: 0
- name: Install Helm
uses: azure/setup-helm@v4
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.6.1
- 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)
run: ct lint --target-branch ${{ github.event.repository.default_branch }}
- name: Create kind cluster
uses: helm/kind-action@v1.10.0
if: github.ref == 'refs/heads/main' || steps.list-changed.outputs.changed == 'true'
- name: Run chart-testing (install)
id: chart-install
run: ct install --remote origin --all
if: github.ref == 'refs/heads/main' || steps.list-changed.outputs.changed == 'true'