Auto update readme files using helm-doc and pre-commit #349
This file contains 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: | |
pull_request: | |
paths: | |
- '**' | |
push: | |
branches: | |
- '**' | |
jobs: | |
lint-docs: | |
runs-on: ubuntu-latest | |
needs: lint-test | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Run helm-docs | |
run: .github/helm-docs.sh | |
kubeval-chart: | |
runs-on: ubuntu-latest | |
needs: | |
- lint-test | |
- lint-docs | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Run kubeval | |
run: .github/kubeval.sh | |
install-chart: | |
name: install-chart | |
runs-on: ubuntu-latest | |
needs: | |
- lint-test | |
- lint-docs | |
- kubeval-chart | |
strategy: | |
matrix: | |
k8s: | |
# https://hub.docker.com/r/kindest/node/tags | |
- v1.23.13 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Create kind ${{ matrix.k8s }} cluster | |
uses: helm/kind-action@v1.4.0 | |
with: | |
node_image: kindest/node:${{ matrix.k8s }} | |
- name: Run chart-testing (install) | |
uses: helm/chart-testing-action@v2.3.1 | |
with: | |
command: install | |
config: .github/ct.yaml | |
lint-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install Helm | |
uses: azure/setup-helm@v1 | |
with: | |
version: v3.10.0 | |
- name: Install chart-testing | |
uses: helm/chart-testing-action@v2.3.1 | |
- name: Lint Charts | |
run: | | |
helm lint stable/* | |
- name: Run chart-testing (list-changed) | |
id: list-changed | |
run: | | |
changed=$(ct list-changed --config ct-config.yaml) | |
if [[ -n "$changed" ]]; then | |
echo "::set-output name=changed::true" | |
fi | |
- name: Run chart-testing (lint) | |
run: ct lint --config ct-config.yaml | |
- name: Create kind cluster | |
uses: helm/kind-action@v1.4.0 | |
if: steps.list-changed.outputs.changed == 'true' | |
- name: Run chart-testing (install) | |
run: ct install --config ct-config.yaml |