Skip to content

chore: bump epam/ai-dial-ci from 1.9.4 to 1.10.0 #248

chore: bump epam/ai-dial-ci from 1.9.4 to 1.10.0

chore: bump epam/ai-dial-ci from 1.9.4 to 1.10.0 #248

Workflow file for this run

name: Lint and Test Charts
on: pull_request
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0
with:
version: v3.13.0
# Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and
# yamllint (https://github.com/adrienverge/yamllint) which require Python
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: 3.x
- name: Set up chart-testing
uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --config ct.yaml 2>/dev/null)
if [[ -n "$changed" ]]; then
echo "$changed" # to show in the logs
{
echo 'changed<<EOF'
echo "${changed}"
echo EOF
} >>$GITHUB_OUTPUT
echo "is_changed=true" >>$GITHUB_OUTPUT
fi
- name: Check documentation is up-to-date
if: steps.list-changed.outputs.is_changed == 'true'
env:
HELM_DOCS_VERSION: v1.11.3
CHANGED_CHARTS: ${{ steps.list-changed.outputs.changed }}
run: |
#!/bin/bash
IFS=$'\n'
for chart in $CHANGED_CHARTS; do
docker run --rm --volume "$(pwd):/helm-docs" -u "$(id -u)" jnorwood/helm-docs:${HELM_DOCS_VERSION} --chart-search-root=${chart}
if [[ $(git status --porcelain ${chart}/README.md) ]]; then
echo "::error::Documentation for ${chart} is not up-to-date. Please run \`helm-docs\` and commit changes!"
exit 1
else
echo "Documentation for ${chart} is up-to-date."
fi
done
- name: Run chart-testing (lint)
if: steps.list-changed.outputs.is_changed == 'true'
run: ct lint --config ct.yaml
- name: Create kind cluster
if: steps.list-changed.outputs.is_changed == 'true'
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0
- name: Run chart-testing (install)
if: steps.list-changed.outputs.is_changed == 'true'
run: ct install --config ct.yaml