Skip to content

Commit 5eab44d

Browse files
(ci): Add GitHub Action to validate installation
We are currently facing issues where the installation process is breaking, and we are unable to detect these failures in CI. This action introduces a validation step to ensure that we can at least install the solution, validating the installation script provided in the Getting Started guide. This is a minimal basic test expected to enhance the developer experience (DX) by reducing user frustration with installation issues.
1 parent 32498f1 commit 5eab44d

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/install.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Install
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
merge_group:
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
kind-deploy:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-go@v5
17+
with:
18+
go-version-file: go.mod
19+
20+
- name: Install the latest version of kind
21+
run: |
22+
curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64
23+
chmod +x ./kind
24+
sudo mv ./kind /usr/local/bin/kind
25+
26+
- name: Create Kind cluster for operator-controller
27+
run: |
28+
kind create cluster --name operator-controller
29+
30+
- name: Build the project
31+
run: |
32+
make build docker-build
33+
34+
- name: Load image into Kind cluster and deploy
35+
run: |
36+
make kind-load kind-deploy
37+
38+
- name: Logs and Details
39+
if: always()
40+
run: |
41+
# Capture high-level information
42+
echo "Gathering details for all resources in namespace olmv1-system..."
43+
kubectl get all -n olmv1-system
44+
45+
# Describe each pod in the namespace for more details
46+
for pod in $(kubectl get pods -n olmv1-system -o jsonpath='{.items[*].metadata.name}'); do
47+
echo "Describing pod $pod..."
48+
kubectl describe pod $pod -n olmv1-system
49+
echo "Logs for pod $pod:"
50+
kubectl logs $pod -n olmv1-system --all-containers=true
51+
done

0 commit comments

Comments
 (0)