chore(deps): update helm/chart-testing-action action to v2.8.0 (#115) #119
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| pr_checks: | |
| name: PR Checks | |
| if: >- | |
| ${{ | |
| github.event_name == 'pull_request' | |
| && !(github.event_name == 'pull_request' && github.event.pull_request.user.login == 'github-actions[bot]' && startsWith(github.event.pull_request.title, '[release netobserv-')) | |
| }} | |
| uses: elastiflow/gha-reusable/.github/workflows/reusable_pr_checks.yml@v0 | |
| renovate_config_validator: | |
| name: renovate config validator | |
| runs-on: ubuntu-latest | |
| container: | |
| image: renovate/renovate:latest | |
| options: --user root # root is needed for checkout to work | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Validate Renovate config | |
| run: renovate-config-validator --strict | |
| helm_checks: | |
| name: Run Helm sanity checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Helm | |
| uses: azure/setup-helm@v4 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.14" | |
| check-latest: true | |
| - name: Build helm dependencies | |
| run: | | |
| find charts -mindepth 1 -maxdepth 1 -type d | while read -r chart; do | |
| echo Building for ${chart} | |
| (helm dependency list ${chart} || true) | grep -E 'https://' | while read -r dep; do | |
| helm repo add $(echo ${dep} | awk '{print $1}') $(echo ${dep} | awk '{print $4}') | |
| done | |
| helm dependency build ${chart} | |
| done | |
| - name: Set up chart-testing | |
| uses: helm/[email protected] | |
| with: | |
| yamale_version: "6.0.0" | |
| - name: Run chart-testing (list-changed) | |
| id: list-changed | |
| run: | | |
| changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) | |
| if [[ -n "$changed" ]]; then | |
| echo "changed=true" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Run chart-testing (lint) | |
| if: steps.list-changed.outputs.changed == 'true' | |
| run: ct lint --target-branch ${{ github.event.repository.default_branch }} --validate-maintainers=false --check-version-increment=false | |
| - name: Create kind cluster | |
| if: steps.list-changed.outputs.changed == 'true' | |
| uses: helm/[email protected] | |
| - name: Run chart-testing (install) | |
| if: steps.list-changed.outputs.changed == 'true' | |
| run: ct install --target-branch ${{ github.event.repository.default_branch }} --helm-extra-set-args="--set EF_OUTPUT_STDOUT_ENABLE=true" |