Skip to content

Commit

Permalink
refactor chart ci (#11)
Browse files Browse the repository at this point in the history
Signed-off-by: bg-furiosa <[email protected]>
  • Loading branch information
bg-furiosa authored Oct 3, 2024
1 parent 9821d33 commit d7cb087
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/examine_pr_changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,20 @@ on:
branches: [ "main" ]

jobs:
helm:
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
Expand All @@ -18,25 +31,17 @@ jobs:
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=true --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
Expand Down

0 comments on commit d7cb087

Please sign in to comment.