Skip to content

Commit

Permalink
Add Hub API Tests Ref input to CI workflow
Browse files Browse the repository at this point in the history
Adding api_hub_tests_ref Github workflow input, that sets HUB_TESTS_REF
environment variable in go-konveyor-tests exection.

This varibale is used to run Hub API tests directly from branch of the Hub PR.

Related to konveyor#22

Signed-off-by: Marek Aufart <maufart@redhat.com>
  • Loading branch information
aufi committed Nov 10, 2023
1 parent 35be7ba commit 5e7d7ef
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/global-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ on:
required: false
type: string
default: main
api_hub_tests_ref:
description: |
The branch or PR of the Hub API tests from tackle2-hub repository to clone.
For a pull request, the reference format would be "refs/pull/${PR_NUMBER}/merge".
For a branch, the reference format would just be the branch name.
required: false
type: string
default: main
ui_tests_ref:
description: |
The branch or PR of the tackle-ui-tests repository to clone.
Expand Down Expand Up @@ -97,6 +105,14 @@ on:
required: false
type: string
default: main
api_hub_tests_ref:
description: |
The branch or PR of the Hub API tests from tackle2-hub repository to clone.
For a pull request, the reference format would be "refs/pull/${PR_NUMBER}/merge".
For a branch, the reference format would just be the branch name.
required: false
type: string
default: main
ui_tests_ref:
description: |
The branch or PR of the tackle-ui-tests repository to clone.
Expand Down Expand Up @@ -182,6 +198,7 @@ jobs:
- name: Build and run golang API tests
run: |
export HUB_BASE_URL="http://$(minikube ip)/hub"
export HUB_TESTS_REF="${{ inputs.api_hub_tests_ref }}"
make test-tier0 test-tier1
working-directory: go-konveyor-tests

Expand Down

0 comments on commit 5e7d7ef

Please sign in to comment.