helm-lint.yaml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Reference https://github.com/helm/chart-testing-action/tree/master#example-workflow
  2. name: Lint Charts
  3. on:
  4. push:
  5. tags:
  6. - v*
  7. branches:
  8. - master
  9. - release-*
  10. pull_request:
  11. branches:
  12. - master
  13. - release-*
  14. # cancel the in-progress workflow when PR is refreshed.
  15. concurrency:
  16. group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
  17. cancel-in-progress: true
  18. permissions:
  19. contents: read
  20. jobs:
  21. lint-test:
  22. runs-on: ubuntu-latest
  23. steps:
  24. - name: Checkout
  25. uses: actions/checkout@v4
  26. with:
  27. fetch-depth: 0
  28. - name: Set up Helm
  29. uses: azure/setup-helm@v3
  30. with:
  31. version: v3.6.2
  32. - uses: actions/setup-python@v4
  33. with:
  34. python-version: 3.9
  35. - name: Set up chart-testing
  36. uses: helm/chart-testing-action@v2.6.1
  37. - name: Run chart-testing (lint)
  38. run: ct lint --charts=./deploy/charts/rook-ceph --validate-yaml=false --validate-maintainers=false