Doi 3055 include helm install in generic microservice helm chart test pipeline #42
Workflow file for this run
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 validate chart | |
on: pull_request | |
jobs: | |
cancel-previous: | |
name: Cancel Previous Runs | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
helm-check: | |
runs-on: ubuntu-latest | |
needs: [cancel-previous] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: helm-check-default | |
uses: igabaydulin/[email protected] | |
env: | |
CHART_LOCATION: ./ | |
CHART_VALUES: ./values.yaml | |
- name: helm-check-test | |
uses: igabaydulin/[email protected] | |
env: | |
CHART_LOCATION: ./ | |
CHART_VALUES: ./ci/test-values.yaml | |
test-k8s: | |
runs-on: ubuntu-latest | |
needs: [helm-check] | |
strategy: | |
matrix: | |
k8s-version: [ v1.27.12, v1.26.15 ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Helm | |
uses: azure/[email protected] | |
with: | |
version: v3.10.3 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
check-latest: true | |
- name: Set up chart-testing | |
uses: helm/[email protected] | |
with: | |
version: v3.10.1 | |
- name: Create Kind cluster | |
uses: helm/[email protected] | |
with: | |
kubectl_version: ${{ matrix.k8s-version }} | |
- name: Run chart-testing (install) | |
run: ct install --config ci/config.yaml |