Enable ci #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |
#- uses: actions/setup-python@v4 | |
# with: | |
# python-version: '3.10' | |
# check-latest: true | |
- 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: try install | |
run: ct install --chart-dirs charts --charts charts/furiosa-device-plugin,charts/furiosa-feature-discovery,charts/furiosa-metrics-exporter --namespace kube-system |