You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by wa...@apache.org on 2022/10/25 13:19:45 UTC

[incubator-devlake-helm-chart] branch main updated: test (#10)

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

warren pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake-helm-chart.git


The following commit(s) were added to refs/heads/main by this push:
     new 526359a  test (#10)
526359a is described below

commit 526359ad414b72648df51022ddabdd600dfdfc19
Author: Warren Chen <yi...@merico.dev>
AuthorDate: Tue Oct 25 21:19:40 2022 +0800

    test (#10)
---
 .github/workflows/ci.yaml | 66 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)

diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
new file mode 100644
index 0000000..5088363
--- /dev/null
+++ b/.github/workflows/ci.yaml
@@ -0,0 +1,66 @@
+name: CI
+
+on:
+  pull_request:
+    branches:
+      - "*"
+
+  push:
+
+jobs:
+
+  helm:
+    name: Helm chart
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        k8s: [v1.16.15, v1.17.17, v1.18.19, v1.19.11, v1.20.7, v1.21.1, v1.22.2]
+
+    steps:
+
+      - name: Checkout
+        uses: actions/checkout@v2
+        with:
+          submodules: recursive
+
+      - name: Lint
+        run: |
+          docker run --rm --interactive --network host \
+              --name ct-lint \
+              --volume $PWD:/workdir \
+              --workdir /workdir/charts/devlake \
+              quay.io/helmpack/chart-testing:v3.4.0 sh -c 'helm dependency update \
+               && cd ../.. \
+               && helm repo add devlake https://apache.github.io/incubator-devlake-helm-chart \
+               && ct lint \
+                  --charts charts/devlake'
+
+      - name: fix permissions
+        run: |
+          sudo mkdir -p $HOME/.kube
+          sudo chmod -R 777 $HOME/.kube
+
+      - name: Create Kubernetes ${{ matrix.k8s }} cluster
+        id: kind
+        uses: ./.github/actions/setup-kind
+        with:
+          version: v0.11.0
+          config: test/e2e/kind.yaml
+          image: kindest/node:${{ matrix.k8s }}
+
+      - name: Test
+        env:
+          KIND_CLUSTER_NAME: kind
+          SKIP_CLUSTER_CREATION: true
+        run: |
+          kind get kubeconfig > $HOME/.kube/kind-config-kind
+          docker run --rm --interactive --network host \
+              --name ct \
+              --volume $HOME/.kube/kind-config-kind:/root/.kube/config \
+              --volume $PWD:/workdir \
+              --workdir /workdir/charts/devlake \
+              quay.io/helmpack/chart-testing:v3.4.0 sh -c 'helm dependency update \
+               && cd ../.. \
+               && helm repo add devlake https://apache.github.io/incubator-devlake-helm-chart \
+               && ct install \
+                  --charts charts/devlake'