diff --git a/.github/workflows/charts.yml b/.github/workflows/charts.yml new file mode 100644 index 00000000..c5e179e3 --- /dev/null +++ b/.github/workflows/charts.yml @@ -0,0 +1,29 @@ +name: Helm Charts CI + +on: + push: + pull_request: + +jobs: + lint: + # Deduplicate jobs from pull requests and branch pushes within the same repo. + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository + runs-on: ubuntu-latest + steps: + - name: Checkout source + uses: actions/checkout@v4.0.0 + with: + fetch-depth: 0 + + - name: Setup Helm + uses: azure/setup-helm@v3.5 + + - name: Setup chart-testing + uses: helm/chart-testing-action@v2.4.0 + + - name: Lint + run: > + ct + lint + --target-branch=${{ github.event.repository.default_branch }} + --validate-maintainers=false