From ed385a479ef6707900a87385b596b9be166cb2b4 Mon Sep 17 00:00:00 2001 From: bsctl Date: Fri, 9 Aug 2024 04:26:17 +0200 Subject: [PATCH] chore(gh): ci for helm-docs --- .github/workflows/helm.yml | 29 +++++++++++++++++++++++++++++ .github/workflows/lint.yml | 18 ------------------ 2 files changed, 29 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/helm.yml delete mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/helm.yml b/.github/workflows/helm.yml new file mode 100644 index 0000000..1ccacfa --- /dev/null +++ b/.github/workflows/helm.yml @@ -0,0 +1,29 @@ +name: Helm Chart + +on: + push: + branches: [ "*" ] + pull_request: + branches: [ "*" ] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: azure/setup-helm@v1 + with: + version: 3.3.4 + - name: Linting Chart + run: helm lint ./charts/kamaji-etcd + diff: + name: diff + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - run: make -C charts/kamaji-etcd docs + - name: Checking if Helm docs is not aligned + run: if [[ $(git diff | wc -l) -gt 0 ]]; then echo ">>> Untracked changes have not been committed" && git --no-pager diff && exit 1; fi + diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 850f9f7..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Lint - -on: - push: - branches: [ "*" ] - pull_request: - branches: [ "*" ] - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: azure/setup-helm@v1 - with: - version: 3.3.4 - - name: Linting Chart - run: helm lint ./charts/kamaji-etcd