mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-04-17 01:31:13 +00:00
* Added: agent chart * Changed: base image tag * Changed: updated helm-docs * Fixed: maintainers * Changed: updated radme * Fixed: http code to check * Fixed: default values to check * Changed: updated helm-docs * Added: default values to be substituted by GH action * Added: sed on the fly for testing * Changed: updated CI images for Kind
50 lines
1.5 KiB
YAML
50 lines
1.5 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:
|
|
matrix:
|
|
k8s:
|
|
- v1.22.7
|
|
- v1.23.6
|
|
- v1.24.0
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
- name: Create kind ${{ matrix.k8s }} cluster
|
|
uses: helm/kind-action@v1.2.0
|
|
with:
|
|
version: v0.13.0
|
|
node_image: kindest/node:${{ matrix.k8s }}
|
|
- name: Set up chart-testing
|
|
uses: helm/chart-testing-action@v2.2.1
|
|
- name: Inject secrets
|
|
run: |
|
|
find ./charts/*/ci/*.yaml -type f -exec sed -i "s/AGENTK8SGLUEKEY/${{ secrets.agentk8sglueKey }}/g" {} \;
|
|
find ./charts/*/ci/*.yaml -type f -exec sed -i "s/AGENTK8SGLUESECRET/${{ secrets.agentk8sglueSecret }}/g" {} \;
|
|
- 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
|