test for kt #95
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: | |
- 'helm/**' | |
jobs: | |
lint-chart: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Run chart-testing (lint) | |
uses: helm/chart-testing-action@main | |
with: | |
command: lint | |
config: .github/ct.yaml | |
kubeval-chart: | |
runs-on: ubuntu-latest | |
needs: | |
- lint-chart | |
strategy: | |
matrix: | |
k8s: | |
- v1.24.1 | |
# - v1.17.4 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Run kubeval | |
env: | |
KUBERNETES_VERSION: ${{ matrix.k8s }} | |
run: .github/kubeval.sh | |
install-chart: | |
name: install-chart | |
runs-on: ubuntu-latest | |
needs: | |
- lint-chart | |
- kubeval-chart | |
strategy: | |
matrix: | |
k8s: | |
- v1.24.1 | |
# - v1.17.2 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Create kind ${{ matrix.k8s }} cluster | |
uses: helm/kind-action@main | |
with: | |
node_image: kindest/node:${{ matrix.k8s }} | |
- name: Run chart-testing (install) | |
uses: helm/chart-testing-action@main | |
with: | |
command: install | |
config: .github/ct.yaml |