Feat/kube stack profiling preset #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Demo Chart | |
| on: | |
| pull_request: | |
| paths: | |
| - 'charts/opentelemetry-demo/**' | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| demo-test-matrix: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| helm-version: | |
| - "v4.0.5" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| with: | |
| create-kind-cluster: "true" | |
| helm-version: ${{ matrix.helm-version }} | |
| - name: Run chart-testing (install) | |
| run: "ct install --charts charts/opentelemetry-demo | |
| --chart-repos opentelemetry-collector=https://open-telemetry.github.io/opentelemetry-helm-charts | |
| --chart-repos prometheus=https://prometheus-community.github.io/helm-charts | |
| --chart-repos grafana=https://grafana-community.github.io/helm-charts | |
| --chart-repos jaeger=https://jaegertracing.github.io/helm-charts | |
| --chart-repos opensearch=https://opensearch-project.github.io/helm-charts" | |
| demo-test: | |
| if: always() | |
| runs-on: ubuntu-latest | |
| needs: [demo-test-matrix] | |
| steps: | |
| - name: Check matrix result | |
| run: | | |
| if [[ "${{ needs.demo-test-matrix.result }}" == "success" ]]; then | |
| echo "All matrix jobs passed!" | |
| else | |
| echo "One or more matrix jobs failed." | |
| exit 1 | |
| fi |