mirror of
https://github.com/netbirdio/helms.git
synced 2026-01-23 16:10:47 +00:00
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: Test netbird Chart
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test-e2e:
|
|
name: Run on Ubuntu
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Clone the code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install the latest version of kind
|
|
run: |
|
|
curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64
|
|
chmod +x ./kind
|
|
sudo mv ./kind /usr/local/bin/kind
|
|
|
|
- name: Verify kind installation
|
|
run: kind version
|
|
|
|
- name: Create kind cluster
|
|
run: kind create cluster
|
|
|
|
- name: Install Helm
|
|
run: |
|
|
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
|
|
|
|
- name: Verify Helm installation
|
|
run: helm version
|
|
|
|
- name: Lint Helm Chart
|
|
run: |
|
|
helm lint ./charts/kubernetes-operator
|
|
|
|
- name: Install Helm chart for project
|
|
run: |
|
|
helm install test-chart --create-namespace --namespace netbird --set 'operator.image.tag=debug' ./charts/netbird
|
|
|
|
- name: Check Helm release status
|
|
run: |
|
|
helm status test-chart --namespace netbird
|
|
|