Skip to content

Enable chart version increment check #19

Enable chart version increment check

Enable chart version increment check #19

name: Helm
on:
push:
#paths: ["charts/**"]
branches: [ "main" ]
pull_request:
#paths: ["charts/**"]
branches: [ "main" ]
jobs:
chart-lint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup helm env
uses: helm/[email protected]
- name: helm lint
run: ct lint --validate-maintainers=false --target-branch main
chart-test-with-kind:
needs: chart-lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
k8s-version: ['v1.24.15', 'v1.25.11', 'v1.26.6', 'v1.27.3', 'v1.28.0', 'v1.29.8', 'v1.30.4', 'v1.31.0']
steps:
- name: checkout
uses: actions/checkout@v4
- name: create kind cluster
uses: helm/[email protected]
with:
cluster_name: helm-charts-test-${{ matrix.k8s-version }}
config: .github/workflows/kind_config/kind_${{ matrix.k8s-version }}.yaml
kubectl_version: ${{ matrix.k8s-version }}
- name: setup helm env
uses: helm/[email protected]
- name: Add dependency chart repos
run: |
helm repo add nfd https://kubernetes-sigs.github.io/node-feature-discovery/charts
- name: Wait for nodes to be ready
run: |
kubectl wait --for=condition=Ready nodes --all --timeout=300s
- name: try install
run: ct install --chart-dirs charts --charts charts/furiosa-device-plugin,charts/furiosa-feature-discovery,charts/furiosa-metrics-exporter --namespace kube-system --helm-extra-args '--timeout 500s'