[backport to 5.14] Fix the operator image make target #3307
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: Run Operator Unit Tests | |
on: [push, pull_request, workflow_dispatch] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" | |
GO111MODULE: "on" | |
GOPROXY: "https://proxy.golang.org" | |
KUBERNETES_VERSION: "v1.17.3" | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 90 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-go@v2 # Could not change to version 3, see issue: | |
# https://github.com/noobaa/noobaa-operator/issues/1031 | |
with: | |
go-version: "1.20" | |
- name: Deploy Dependencies | |
id: deploy | |
run: | | |
bash .travis/install-tools.sh | |
bash .travis/install-python.sh | |
sudo bash .travis/install-minikube.sh | |
- name: Run Generate API | |
id: run-gen-api | |
run: make gen-api-fail-if-dirty --always-make || exit 1 | |
- name: Run Build | |
id: run-build | |
run: make build || exit 1 | |
- name: Run Test | |
id: run-test | |
run: make test || exit 1 | |
- name: Run Test OLM | |
id: run-test-olm | |
run: sudo env "PATH=$PATH" make test-olm || exit 1 | |
run-cli-tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 90 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: "1.20" | |
- name: Deploy Dependencies | |
id: deploy | |
run: | | |
bash .travis/install-tools.sh | |
bash .travis/install-python.sh | |
sudo bash .travis/install-minikube.sh | |
- name: Run Build CLI | |
id: run-build-cli | |
run: make cli || exit 1 | |
- name: Run Build Image | |
id: run-build-image | |
run: make image || exit 1 | |
- name: Run Test CLI | |
id: run-test-cli | |
run: sudo make test-cli-flow || exit 1 | |
run-core-config-map-tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 90 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: "1.20" | |
- name: Deploy Dependencies | |
id: deploy | |
run: | | |
bash .travis/install-tools.sh | |
bash .travis/install-python.sh | |
sudo bash .travis/install-minikube.sh | |
- name: Run Build CLI | |
id: run-build-cli | |
run: make cli || exit 1 | |
- name: Run Build Image | |
id: run-build-image | |
run: make image || exit 1 | |
- name: Run Test Core config map | |
id: run-test-core-config-map-flow | |
run: sudo make test-core-config-map-flow || exit 1 |