Skip to content

Picker: Feature/add ci deployment target3 #67

Picker: Feature/add ci deployment target3

Picker: Feature/add ci deployment target3 #67

Workflow file for this run

name: Lint and Test Charts
on:
- pull_request
# - push
jobs:
lint-test:
runs-on: ubuntu-latest
strategy:
matrix:
kubernetes_version:
- "kindest/node:v1.25.11"
- "kindest/node:v1.24.15"
- "kindest/node:v1.23.5"
- "kindest/node:v1.22.1"
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.12.1
# Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and
# yamllint (https://github.com/adrienverge/yamllint) which require Python
- uses: actions/setup-python@v4
with:
python-version: '3.9'
check-latest: true
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.4.0
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --config ct.yaml)
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Install helm unittests
if: steps.list-changed.outputs.changed == 'true'
run: |
helm env
helm plugin install https://github.com/quintush/helm-unittest --version 0.3.1
- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --config ct.yaml
- name: Create kind cluster
if: steps.list-changed.outputs.changed == 'true'
uses: helm/kind-action@v1.7.0
with:
node_image: ${{ matrix.kubernetes_version }}
- name: Run chart-testing (install)
run: ct install --config ct.yaml