Skip to content

feat: add command and args #21

feat: add command and args

feat: add command and args #21

Workflow file for this run

name: Helm
on:
push:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'charts/**'
- 'ct.yaml'
- '.github/workflows/lint-test.yml'
- '!**.md'
- '!**.txt'
pull_request:
# file paths to consider in the event. Optional; defaults to all.
paths:
- 'charts/**'
- 'ct.yaml'
- '.github/workflows/lint-test.yml'
- '!**.md'
- '!**.txt'
jobs:
lint-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
# This step checks out a copy of your repository.
- name: Checkout Milvus Helm
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v4.2.0
with:
version: v3.4.0
- name: Add dependency chart repos
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.6.0
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --target-branch main)
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
fi
- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --config ct.yaml
- name: Create KinD cluster
uses: helm/kind-action@v1
if: steps.list-changed.outputs.changed == 'true'
- name: Run chart-testing (install)
id: install
if: steps.list-changed.outputs.changed == 'true'
run: ct install --config ct.yaml