Skip to content

Enable ci

Enable ci #7

name: Helm
on:
push:
#paths: ["charts/**"]
branches: [ "main" ]
pull_request:
#paths: ["charts/**"]
branches: [ "main" ]
jobs:
helm:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
k8s-version: [ 'v1.20.15', 'v1.22.17', 'v1.23.17', 'v1.24.15', 'v1.25.11', 'v1.26.6', 'v1.27.3', 'v1.28.0', 'v1.29.1' ]
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- 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: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.12.1
- 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: helm lint
run: ct lint --chart-dirs=charts --target-branch=${{ github.event.repository.default_branch }} --validate-maintainers=false --check-version-increment=false --charts charts/furiosa-device-plugin,charts/furiosa-feature-discovery,charts/furiosa-metrics-exporter
- 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'