diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 9a2a158..1637366 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -5,6 +5,29 @@ on: pull_request: jobs: + chart-testing: + name: Helm Chart Linting + runs-on: ubuntu-latest + steps: + - name: Check out the repository + uses: actions/checkout@v2 + + - name: Set up Helm + uses: azure/setup-helm@v1 + with: + version: v3.6.0 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Set up helm/chart-testing + uses: helm/chart-testing-action@v2.1.0 + + - name: Run helm/chart-testing (lint) + run: ct lint --config ct.yaml + gitlint: name: Commit Message(s) runs-on: ubuntu-latest diff --git a/ct.yaml b/ct.yaml new file mode 100644 index 0000000..45743e5 --- /dev/null +++ b/ct.yaml @@ -0,0 +1,6 @@ +charts: + - submariner-operator + - submariner-k8s-broker +# Tests that maintainer name is valid GitHub account, which isn't what we want +# See: https://github.com/helm/chart-testing/issues/192 +validate-maintainers: false