Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/global-ci-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ on:
required: false
# TODO: Swap to true once these are passing consistently
default: false
run_cli_tests:
description: |
A flag that determines whether the CLI tests should be run or not
type: boolean
required: false
default: false
api_tests_ref:
description: |
The branch or PR of the go-konveyor-tests repository to clone.
Expand All @@ -105,6 +111,14 @@ on:
required: false
type: string
default: main
cli_tests_ref:
description: |
The branch or PR of the CLI tests from kantra-cli-tests repository.
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: latest
ui_tests_ref:
description: |
The branch or PR of the tackle-ui-tests repository to clone.
Expand Down Expand Up @@ -158,6 +172,12 @@ on:
required: false
# TODO: Swap to true once these are passing consistently
default: false
run_cli_tests:
description: |
A flag that determines whether the CLI tests should be run or not
type: boolean
required: false
default: false
api_tests_ref:
description: |
The branch or PR of the go-konveyor-tests repository to clone.
Expand Down Expand Up @@ -505,3 +525,23 @@ jobs:
tackle-ui-tests/cypress/screenshots
tackle-ui-tests/cypress/videos

e2e-cli-tests:
needs: check-images
if: ${{ inputs.run_cli_tests }}
runs-on: ubuntu-latest
steps:
- name: extract kantra image URI from bundle
# TODO HERE

- name: Checkout kantra-cli-tests repo to use dynamically on target (release) branch
uses: actions/checkout@v4
with:
repository: konveyor-ecosystem/kantra-cli-tests
ref: ${{ inputs.tag == 'latest' && 'main' || inputs.tag }}
path: kantra-cli-tests

- uses: ./kantra-cli-tests/.github/workflows/test-suite.yaml
with:
image: <TBD> # take from bundle and the full image url
tag: latest # take from bundle tag
tier: TIER0
28 changes: 28 additions & 0 deletions .github/workflows/global-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ on:
type: boolean
required: false
default: true
run_cli_tests:
description: |
A flag that determines whether the CLI tests should be run or not
type: boolean
required: false
default: false
api_tests_ref:
description: |
The branch or PR of the go-konveyor-tests repository to clone.
Expand Down Expand Up @@ -119,6 +125,12 @@ on:
type: boolean
required: true
default: true
run_cli_tests:
description: |
A flag that determines whether the CLI tests should be run or not
type: boolean
required: false
default: false
api_tests_ref:
description: |
The branch or PR of the go-konveyor-tests repository to clone.
Expand Down Expand Up @@ -453,3 +465,19 @@ jobs:
tackle-ui-tests/cypress/reports
tackle-ui-tests/cypress/screenshots
tackle-ui-tests/cypress/videos

e2e-cli-tests:
if: ${{ inputs.run_cli_tests }}
runs-on: ubuntu-latest
steps:
- name: Checkout kantra-cli-tests repo to use dynamically on target (release) branch
uses: actions/checkout@v4
with:
repository: konveyor-ecosystem/kantra-cli-tests
ref: ${{ inputs.tag == 'latest' && 'main' || inputs.tag }}
path: kantra-cli-tests

- uses: ./kantra-cli-tests/.github/workflows/test-suite.yaml
with:
tag: ${{ inputs.tag }}
tier: TIER0
2 changes: 1 addition & 1 deletion .github/workflows/nightly-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
payload: |
{
"test": "E2E API",
"test": "E2E",
"branch": "main",
"note": "Failed run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
Expand Down