WIP functional tests #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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=controller:test | |
- name: Load the image into Kind | |
run: kind load docker-image controller:test | |
- name: Deploy the controller | |
run: make deploy IMG=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() |