Skip to content

Commit

Permalink
[otel-agent] add helm install test
Browse files Browse the repository at this point in the history
  • Loading branch information
povilasv committed Jul 11, 2023
1 parent 81ee28d commit 07ae5a4
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Setup
description: sets up helm lint and testing environment
inputs:
create-kind-cluster: # id of input
description: 'Whether or not to create a kind cluster during setup'
required: true
default: "false"
runs:
using: "composite"
steps:
- name: Set up Helm
uses: azure/[email protected]
with:
version: v3.9.0

- uses: actions/setup-python@v4
with:
python-version: 3.7

- name: Set up chart-testing
uses: helm/[email protected]

- name: Create kind cluster
uses: helm/[email protected]
if: ${{ inputs.create-kind-cluster == 'true' }}
with:
node_image: kindest/node:v1.24.12

- name: Add Dependencies
shell: bash
run: |
helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts
helm repo add coralogix-charts-virtual https://cgx.jfrog.io/artifactory/coralogix-charts-virtual
20 changes: 20 additions & 0 deletions .github/workflows/helm-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Otel Agent Helm Install Test

on:
pull_request:

jobs:
collector-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup
uses: ./.github/actions/setup
with:
create-kind-cluster: "true"
- name: Run chart-testing (install)
run: ct install --charts otel-agent/k8s-helm

0 comments on commit 07ae5a4

Please sign in to comment.