Skip to content

Update /docs/index.yaml #12

Update /docs/index.yaml

Update /docs/index.yaml #12

Workflow file for this run

# purpose: Continuous Integration
name: Integrate
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
concurrency:
group: "ci"
cancel-in-progress: true
env:
CHARTS_DIRECTORIES_ARG: "--chart-dirs charts"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout git repository
uses: actions/[email protected]
with:
# note: important to have chart-testing work (see https://github.com/helm/chart-testing/issues/186)
fetch-depth: 0
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: 3.10.1
- name: Install Python
uses: actions/[email protected]
with:
python-version: 3.11
- name: Install chart-testing
uses: helm/[email protected]
- name: List changed charts
id: list-changed
run: |
changed=$(ct list-changed ${CHARTS_DIRECTORIES_ARG} --target-branch ${{ github.event.repository.default_branch }})
charts=$(echo "$changed" | tr '\n' ' ' | xargs)
if [[ -n "$changed" ]]; then
echo "changed=true" >> $GITHUB_OUTPUT
echo "changed_charts=$charts" >> $GITHUB_OUTPUT
fi
- name: Lint charts
run: ct lint $CHARTS_DIRECTORIES_ARG --target-branch ${{ github.event.repository.default_branch }}
# TODO: debug & fix
# - name: Create kind cluster
# uses: helm/[email protected]
# if: steps.list-changed.outputs.changed == 'true'
# - name: Run chart-testing (install)
# run: ct install $CHARTS_DIRECTORIES_ARG --target-branch ${{ github.event.repository.default_branch }}
# if: steps.list-changed.outputs.changed == 'true'