Skip to content

ci: Comment PRs with the diff from the pre commit hooks #75

ci: Comment PRs with the diff from the pre commit hooks

ci: Comment PRs with the diff from the pre commit hooks #75

Workflow file for this run

name: Lint Charts
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # pin@v3
with:
fetch-depth: 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: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --config ct.yaml --target-branch "${{ github.event.pull_request.base.ref }}"