From 36d4d236ef549e6f7e7647dba9f7d40141212b63 Mon Sep 17 00:00:00 2001 From: "minquan.chen" Date: Wed, 30 Nov 2022 17:40:57 +0800 Subject: [PATCH] fix ci bug --- .../{test-chart.yaml => lint-chart.yaml} | 31 +++++++------------ 1 file changed, 12 insertions(+), 19 deletions(-) rename .github/workflows/{test-chart.yaml => lint-chart.yaml} (60%) diff --git a/.github/workflows/test-chart.yaml b/.github/workflows/lint-chart.yaml similarity index 60% rename from .github/workflows/test-chart.yaml rename to .github/workflows/lint-chart.yaml index 322b720..e92506b 100644 --- a/.github/workflows/test-chart.yaml +++ b/.github/workflows/lint-chart.yaml @@ -9,7 +9,7 @@ on: - main jobs: - demo-test: + lint-test: runs-on: ubuntu-latest steps: - name: Checkout @@ -18,16 +18,21 @@ jobs: fetch-depth: 0 - name: Set up Helm - uses: azure/setup-helm@v1 + uses: azure/setup-helm@v3 with: - version: v3.9.2 + version: v3.10.0 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 with: - python-version: 3.7 + python-version: '3.9' + check-latest: true - name: Set up chart-testing - uses: helm/chart-testing-action@v2.2.1 + uses: helm/chart-testing-action@v2.3.1 + + - name: test-echo + run: | + echo ${{ github.event.repository.default_branch }} - name: Run chart-testing (list-changed) id: list-changed @@ -37,23 +42,11 @@ jobs: echo "::set-output name=changed::true" fi - - name: Helm Update + - name: Sync dependency run: | helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts helm repo add bitnami https://charts.bitnami.com/bitnami helm repo add redis https://ot-container-kit.github.io/helm-charts - helm dep up charts/openinsight - helm dep up charts/opentelemetry-demo - name: Run chart-testing (lint) run: ct lint --target-branch ${{ github.event.repository.default_branch }} - -# - name: Create kind cluster -# uses: helm/kind-action@v1.2.0 -# if: steps.list-changed.outputs.changed == 'true' -# -# - name: sync dependency -# run: helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts -# -# - name: Run chart-testing (install) -# run: ct install --target-branch ${{ github.event.repository.default_branch }} \ No newline at end of file