Enable Celery beat by default for CRON-based triggers #310
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 | |
| permissions: | |
| contents: read | |
| 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/setup-helm@v4.2.0 | |
| with: | |
| version: v3.12.0 | |
| - uses: actions/setup-python@v5.3.0 | |
| 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/chart-testing-action@v2.7.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 }} --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 |