name: Lint and Test Charts on: push: branches: - main jobs: lint-test: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 0 - name: Set up Helm uses: azure/setup-helm@v4.2.0 with: version: v3.14.4 - name: Check for changed charts id: changed-files uses: tj-actions/changed-files@v44 with: dir_names: true dir_names_max_depth: '2' files: 'charts/**' - name: List all changed files run: | for file in ${{ steps.changed-files.all_changed_and_modified_files }}; do echo "$file was changed" helm lint $file done