chore(deps): bump kentaro-m/auto-assign-action from e6c4932f995626505d2a5d85401b0319753caa11 to a558e3a7a389eae6d782d4f5ad0aaa5e36ec2e39 #928
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint and Test Charts | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| changes: | |
| outputs: | |
| charts: ${{ steps.filter.outputs.charts }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - id: filter | |
| uses: dorny/paths-filter@v3.0.2 | |
| with: | |
| filters: | | |
| charts: | |
| - 'charts/**/Chart.yaml' | |
| - 'charts/**/*' | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| lint-test: | |
| if: needs.changes.outputs.charts == 'true' | |
| runs-on: ubuntu-latest | |
| needs: | |
| - changes | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Fetch history | |
| run: git fetch --prune --unshallow | |
| - name: Set up Helm | |
| uses: azure/setup-helm@v4 | |
| with: | |
| version: v3.7.2 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.9 | |
| - name: Set up chart-testing | |
| uses: helm/chart-testing-action@v2.7.0 | |
| - name: Run chart-testing (list-changed) | |
| id: list-changed | |
| run: | | |
| changed=$(ct list-changed --config ./.github/ct.yaml) | |
| if [[ -n "$changed" ]]; then | |
| echo "::set-output name=changed::true" | |
| fi | |
| - name: Run chart-testing (lint) | |
| run: ct lint --config ./.github/ct.yaml | |
| - name: Create kind cluster | |
| uses: helm/kind-action@v1.12.0 | |
| if: steps.list-changed.outputs.changed == 'true' | |
| - name: Add bitnami chart repos | |
| run: helm repo add bitnami https://charts.bitnami.com/bitnami | |
| - name: Add dragonfly chart repos | |
| run: helm repo add dragonfly https://dragonflyoss.github.io/helm-charts/ | |
| - name: Add nydus-snapshotter chart repos | |
| run: helm repo add nydus-snapshotter https://dragonflyoss.github.io/helm-charts/ | |
| - name: Run chart-testing (install) | |
| run: ct install --config ./.github/ct.yaml | |
| docs-validate: | |
| if: needs.changes.outputs.charts == 'true' | |
| needs: | |
| - changes | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Check for changes | |
| run: | | |
| docker run --rm --volume "$(pwd):/helm-docs" -u "$(id -u)" jnorwood/helm-docs:v1.10.0 | |
| if ! git diff --exit-code; then | |
| echo "Documentation not up to date. Please run helm-docs and commit changes!" >&2 | |
| exit 1 | |
| fi |