Skip to content

Fix nightly ui tier0 and Test UI tier1,2,3 jobs. #1267

Fix nightly ui tier0 and Test UI tier1,2,3 jobs.

Fix nightly ui tier0 and Test UI tier1,2,3 jobs. #1267

Workflow file for this run

name: Test Nightly tier0
on: ['push','pull_request']
# workflow_dispatch:
# schedule:
# - cron: "0 0 * * *"
jobs:
k8s:
runs-on: ubuntu-latest
steps:
- name: Checkout tackle
uses: actions/checkout@v2
with:
repository: konveyor/tackle
path: tackle
- name: Setup minikube
uses: konveyor/tackle2-operator/.github/actions/start-minikube@main
with:
memory: 'max'
cpus: 'max'
- name: Install konveyor
uses: konveyor/tackle2-operator/.github/actions/install-konveyor@main
with:
tackle_cr: '{"kind":"Tackle","apiVersion":"tackle.konveyor.io/v1alpha1","metadata":{"name":"tackle"},"spec":{"image_pull_policy":"IfNotPresent","feature_auth_required":true}}'
- name: Wait for pods to be ready.
run: sleep 150s
shell: bash
- name: Check pod status
run: kubectl get pods -n konveyor-tackle
- name: Wait for Ingress
shell: bash
run: |
bash -c 'external_ip="";
echo $external_ip;
while [[ -z $external_ip ]]
do
echo "Waiting for end point..."
external_ip=$(kubectl get ingress tackle --template="{{range.status.loadBalancer.ingress}}{{.ip}}{{end}}" -n konveyor-tackle);[[ -z $external_ip ]] &&
echo $external_ip;
sleep 10;
done
echo "End point ready:" &&
echo $external_ip;
export endpoint=$(minikube ip);
echo "CYPRESS_tackleUrl=https://$endpoint" >>$GITHUB_ENV'
- name: Checkout to branch
uses: actions/checkout@v2
- name: Install NPM
run: npm install .
- name: Run cypress login test
run: npx cypress run --spec "cypress/e2e/tests/login.test.ts" --env user="admin",pass="password",tackleUrl=${{ env.CYPRESS_tackleUrl }}
- name: Run Tier1 test cases
run: |
npx cypress run --spec **/*.test.ts --env grepTags=@tier0,user=admin,pass=Dog8code,tackleUrl=${{ env.CYPRESS_tackleUrl }}
- uses: actions/upload-artifact@v1
if: failure()
with:
name: minikube-tests-screenshots
path: tackle-ui-tests/cypress/screenshots