Minor fix to readme (top level) #2
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/[email protected] | |
with: | |
node_image: kindest/node:${{ matrix.k8s }} | |
- name: Run chart-testing (install) | |
uses: helm/[email protected] | |
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/[email protected] | |
- 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/[email protected] | |
if: steps.list-changed.outputs.changed == 'true' | |
- name: Run chart-testing (install) | |
run: ct install --config ct-config.yaml |