mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-01-31 17:16:47 +00:00
51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
name: Lint and Test Charts
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'charts/**'
|
|
|
|
jobs:
|
|
lint-docs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
- name: Run helm-docs
|
|
run: .github/helm-docs.sh
|
|
install-chart:
|
|
name: install-chart
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- lint-docs
|
|
strategy:
|
|
max-parallel: 1
|
|
matrix:
|
|
k8s:
|
|
- v1.21.2
|
|
- v1.22.4
|
|
- v1.23.0
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
- name: Create kind ${{ matrix.k8s }} cluster
|
|
uses: helm/kind-action@v1.1.0
|
|
with:
|
|
version: v0.11.1
|
|
node_image: kindest/node:${{ matrix.k8s }}
|
|
- name: Set up chart-testing
|
|
uses: helm/chart-testing-action@v2.0.1
|
|
- name: Add bitnami repo
|
|
run: helm repo add bitnami https://charts.bitnami.com/bitnami
|
|
- name: Add elastic repo
|
|
run: helm repo add elastic https://helm.elastic.co
|
|
- name: Run chart-testing (list-changed)
|
|
id: list-changed
|
|
run: |
|
|
changed=$(ct list-changed --chart-dirs=charts --target-branch=main)
|
|
if [[ -n "$changed" ]]; then
|
|
echo "::set-output name=changed::true"
|
|
fi
|
|
- name: Run chart-testing (lint and install)
|
|
run: ct lint-and-install --chart-dirs=charts --target-branch=main --helm-extra-args="--timeout=15m" --debug=true
|