From 2938f265202dbe23e8e846995ef548622b9a03d2 Mon Sep 17 00:00:00 2001 From: Daniel Farrell Date: Fri, 11 Jun 2021 12:50:06 -0400 Subject: [PATCH] Add helm/chart-testing linting Fixes: #68 Signed-off-by: Daniel Farrell --- .github/workflows/linting.yml | 23 +++++++++++++++++++++++ ct.yaml | 6 ++++++ 2 files changed, 29 insertions(+) create mode 100644 ct.yaml 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