-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (35 loc) · 1.2 KB
/
functional.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Functional
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
functional:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: helm/kind-action@v1
with:
cluster_name: kind
- name: Install CRDs
run: make install
- name: Build the image
run: make docker-build IMG=localhost/controller:test
- name: Load the image into Kind
run: kind load docker-image localhost/controller:test
- name: Deploy the controller
run: make deploy IMG=localhost/controller:test
- name: Wait for the controller deployment
run: kubectl wait --for=condition=Ready --timeout=60s -n ironic-standalone-operator-system deployment/ironic-standalone-operator-controller-manager
- name: Run the tests
run: cd test && go test
- name: Show the deployment
run: kubectl get -o yaml -n ironic-standalone-operator-system deployment/ironic-standalone-operator-controller-manager
if: always()
- name: Show all pods
run: kubectl get -o yaml -n ironic-standalone-operator-system pod
if: always()
- name: Show all Ironic objects
run: kubectl get -o yaml -A ironic
if: always()