This is an automated email from the ASF dual-hosted git repository. warren pushed a commit to branch fix-3 in repository https://gitbox.apache.org/repos/asf/incubator-devlake-helm-chart.git
commit 2606c4af1d095fe665cda1c819297c3b71d48f9c Author: Yingchu Chen <[email protected]> AuthorDate: Tue Oct 25 21:19:16 2022 +0800 test --- .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'
