ci: Comment PRs with the diff from the pre commit hooks #455
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: Test Charts | |
| on: | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # pin@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Helm | |
| uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # [email protected] | |
| with: | |
| version: v3.10.0 | |
| - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # pin@v4 | |
| with: | |
| python-version: 3.12 | |
| - name: Set up chart-testing | |
| uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # [email protected] | |
| - name: Run chart-testing (list-changed) | |
| id: list-changed | |
| run: | | |
| changed=$(ct list-changed --target-branch "${{ github.event.pull_request.base.ref }}") | |
| if [[ -n "$changed" ]]; then | |
| echo "changed=true" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: "Add NGINX Ingress and Bitnami Repository" | |
| if: steps.list-changed.outputs.changed == 'true' | |
| run: | | |
| helm repo add ingress-nginx "https://kubernetes.github.io/ingress-nginx" | |
| helm repo update | |
| - name: Create KIND Cluster | |
| if: steps.list-changed.outputs.changed == 'true' | |
| uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # [email protected] | |
| - name: Install Ingress Controller | |
| if: steps.list-changed.outputs.changed == 'true' | |
| run: "helm install ingress-nginx/ingress-nginx --generate-name --set controller.service.type='NodePort' --set controller.admissionWebhooks.enabled=false" | |
| - name: Run chart-testing (install) | |
| if: steps.list-changed.outputs.changed == 'true' | |
| run: ct install --config ct-install.yaml --target-branch "${{ github.event.pull_request.base.ref }}" |