From ec70d7685d131e6f6ab4e339a886b2fdb4d6822d Mon Sep 17 00:00:00 2001 From: David Gerchikov Date: Wed, 20 Nov 2024 16:58:13 +0200 Subject: [PATCH] Update lint-and-test-charts.yaml --- .github/workflows/lint-and-test-charts.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/lint-and-test-charts.yaml b/.github/workflows/lint-and-test-charts.yaml index fba50a8..033df1e 100644 --- a/.github/workflows/lint-and-test-charts.yaml +++ b/.github/workflows/lint-and-test-charts.yaml @@ -25,17 +25,16 @@ jobs: check-latest: true - name: Set up chart-testing + if: startsWith(github.head_ref, 'VEC-') uses: helm/chart-testing-action@v2.6.1 - - name: Output default branch + - name: Run chart-testing (lint) + if: startsWith(github.head_ref, 'VEC-') run: | - echo "Branch: ${{ github.event.repository.default_branch }}" + ct lint --chart-dirs "./aerospike-vector-search" --target-branch ${{ github.event.repository.default_branch }} -# - name: Run chart-testing (lint) -# if: steps.list-changed.outputs.changed == 'true' -# run: ct lint --target-branch ${{ github.event.repository.default_branch }} -# - name: Create kind cluster + if: startsWith(github.head_ref, 'VEC-') uses: helm/kind-action@v1.10.0 - name: Setup Prerequisites @@ -172,7 +171,8 @@ jobs: - /mnt/disks/avs-meta/avs-meta.dat EOF -# -# - name: Run chart-testing (install) -# if: steps.list-changed.outputs.changed == 'true' -# run: ct install --target-branch ${{ github.event.repository.default_branch }} \ No newline at end of file + - name: Run chart-testing (install) + if: startsWith(github.head_ref, 'VEC-') + run: | + ct install --chart-dirs "./aerospike-vector-search" \ + --target-branch ${{ github.event.repository.default_branch }}