feat(charts): Allow configurable Redis DB for cache and Celery broker #248
Workflow file for this run
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: Lint and Test Charts | |
| on: | |
| pull_request: | |
| branches: [ master ] | |
| paths: | |
| - 'charts/dify/values.yaml' | |
| - 'charts/dify/templates/**' | |
| - 'charts/dify/Chart.yaml' | |
| jobs: | |
| lint-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Helm | |
| uses: azure/[email protected] | |
| with: | |
| version: v3.12.0 | |
| - uses: actions/[email protected] | |
| with: | |
| python-version: '3.12' | |
| check-latest: true | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pyyaml | |
| - name: Set up chart-testing | |
| uses: helm/[email protected] | |
| - 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 }} --config ct.yaml | |
| - name: Check for unused values in values.yaml | |
| if: steps.list-changed.outputs.changed == 'true' | |
| run: | | |
| python3 ci/scripts/check_unused_values.py \ | |
| --skip-section redis \ | |
| --skip-section postgresql \ | |
| --skip-section weaviate \ | |
| --skip-section externalSecret |