You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by le...@apache.org on 2023/03/20 02:33:18 UTC

[tika-helm] 01/01: TIKA-3988 Add Github Action to Lint and Test Charts

This is an automated email from the ASF dual-hosted git repository.

lewismc pushed a commit to branch TIKA-3988
in repository https://gitbox.apache.org/repos/asf/tika-helm.git

commit fcaf66e61c28fef6be6cd25484f1b4a03a9c8035
Author: Lewis John McGibbney <le...@gmail.com>
AuthorDate: Sun Mar 19 19:33:02 2023 -0700

    TIKA-3988 Add Github Action to Lint and Test Charts
---
 .github/workflows/lint-test.yaml | 43 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml
new file mode 100644
index 0000000..c2c6d99
--- /dev/null
+++ b/.github/workflows/lint-test.yaml
@@ -0,0 +1,43 @@
+name: Lint and Test Charts
+
+on: pull_request
+
+jobs:
+  lint-test:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+        with:
+          fetch-depth: 0
+
+      - name: Set up Helm
+        uses: azure/setup-helm@v3
+        with:
+          version: v3.10.0
+
+      - uses: actions/setup-python@v4
+        with:
+          python-version: '3.9'
+          check-latest: true
+
+      - name: Set up chart-testing
+        uses: helm/chart-testing-action@v2.3.1
+
+      - name: Run chart-testing (list-changed)
+        id: list-changed
+        run: |
+          changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
+          if [[ -n "$changed" ]]; then
+            echo "::set-output name=changed::true"
+          fi
+
+      - name: Run chart-testing (lint)
+        run: ct lint --target-branch ${{ github.event.repository.default_branch }}
+
+      - name: Create kind cluster
+        uses: helm/kind-action@v1.4.0
+        if: steps.list-changed.outputs.changed == 'true'
+
+      - name: Run chart-testing (install)
+        run: ct install
\ No newline at end of file