helm.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. name: Helm
  2. on:
  3. push:
  4. branches:
  5. - main
  6. - release-*
  7. paths:
  8. - 'deploy/charts/**'
  9. pull_request:
  10. paths:
  11. - 'deploy/charts/**'
  12. workflow_dispatch: {}
  13. jobs:
  14. lint-and-test:
  15. runs-on: ubuntu-latest
  16. steps:
  17. - name: Checkout
  18. uses: actions/checkout@v2
  19. with:
  20. fetch-depth: 0
  21. - name: Generate chart
  22. run: |
  23. make helm.generate
  24. - name: Set up Helm
  25. uses: azure/setup-helm@v1
  26. with:
  27. version: v3.4.2
  28. - uses: actions/setup-python@v2
  29. with:
  30. python-version: 3.7
  31. - name: Set up chart-testing
  32. uses: helm/chart-testing-action@v2.0.1
  33. - name: Run chart-testing (list-changed)
  34. id: list-changed
  35. run: |
  36. changed=$(ct list-changed --config=.github/ci/ct.yaml)
  37. if [[ -n "$changed" ]]; then
  38. echo "::set-output name=changed::true"
  39. fi
  40. - name: Run chart-testing (lint)
  41. run: ct lint --config=.github/ci/ct.yaml
  42. - name: Create kind cluster
  43. uses: helm/kind-action@v1.1.0
  44. if: steps.list-changed.outputs.changed == 'true'
  45. - name: Run chart-testing (install)
  46. run: ct install --config=.github/ci/ct.yaml