From ebe24c71490d1530c3597e829754d6e1b055be37 Mon Sep 17 00:00:00 2001 From: christianhuth Date: Tue, 17 Dec 2024 14:13:06 +0000 Subject: [PATCH] use ubuntu 22, run helm lint --- .git-hooks/helm-dependency-update.sh | 3 --- .github/workflows/chart-testing.yml | 7 +++++-- .pre-commit-hooks.yaml | 11 ----------- 3 files changed, 5 insertions(+), 16 deletions(-) delete mode 100755 .git-hooks/helm-dependency-update.sh delete mode 100644 .pre-commit-hooks.yaml diff --git a/.git-hooks/helm-dependency-update.sh b/.git-hooks/helm-dependency-update.sh deleted file mode 100755 index fa2be00a..00000000 --- a/.git-hooks/helm-dependency-update.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -ct list-changed | xargs -d '\n' -I {} helm dependency update {} diff --git a/.github/workflows/chart-testing.yml b/.github/workflows/chart-testing.yml index 28e02a4f..97937df5 100644 --- a/.github/workflows/chart-testing.yml +++ b/.github/workflows/chart-testing.yml @@ -26,7 +26,7 @@ jobs: run: ah lint helm-lint: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: checkout git repository uses: actions/checkout@v4 @@ -43,9 +43,12 @@ jobs: - name: Set up chart-testing uses: helm/chart-testing-action@v2.6.1 - - name: helm lint on changed charts + - name: helm dependency update on changed charts run : ct list-changed --config .github/config/chart-testing.yaml | xargs -d '\n' -I {} helm dependency update {} + - name: helm lint on changed charts + run : ct list-changed --config .github/config/chart-testing.yaml | xargs -d '\n' -I {} helm lint {} + chart-testing: runs-on: ubuntu-22.04 steps: diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml deleted file mode 100644 index 228a1b54..00000000 --- a/.pre-commit-hooks.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- id: helm-dependency-update - name: Update Helm Dependency for changed Charts - entry: bash -c 'ct list-changed | xargs -d '\n' -I {} helm dependency update {}' - language: system - pass_filenames: false - -- id: helm-kubeconform - name: Execute kubeconform for changed Charts - entry: bash -c 'ct list-changed | xargs -d '\n' -I {} helm kubeconform {}' - language: system - pass_filenames: false