Skip to content

WIP functional tests #7

WIP functional tests

WIP functional tests #7

Workflow file for this run

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()