Skip to content

UserFlow sanity

UserFlow sanity #5104

Workflow file for this run

name: UserFlow sanity
on:
workflow_dispatch:
# Triggers the workflow at 5 minutes past the hour, every hour
schedule:
- cron: "05 * * * *"
# push:
# branches:
# - main
jobs:
run-flowUser-test-eu:
runs-on: ubuntu-latest
steps:
- name: Generate uuid
id: uuid
run: |
echo "RANDOM_UUID=systets-$(uuidgen)" >> $GITHUB_OUTPUT
- name: Create k8s Kind Cluster
id: kind-cluster-install
uses: helm/[email protected]
with:
cluster_name: ${{ steps.uuid.outputs.RANDOM_UUID }}
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
timeout-minutes: 10
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run user flow test
id: user_flow_test
env:
URL: ${{ inputs.URL }}
email_user_flow: ${{ secrets.EMAIL_USER_FLOW }}
login_pass_user_flow: ${{ secrets.LOGIN_PASS_USER_FLOW }}
run: |
python userFlow.py $URL
- name: upload screenshots
uses: actions/upload-artifact@v4
if: always()
with:
name: screenshots
path: |
./*.png
- name: Commit changes
uses: EndBug/add-and-commit@v9
if: inputs.URL == ''
with:
message: "Update logs with new data"
author_name: bvolovat
author_email: [email protected]
commit: --signoff
pull: '--ff-only'
add: ./logs/*
run-flowUser-test-us:
runs-on: ubuntu-latest
steps:
- name: Generate uuid
id: uuid
run: |
echo "RANDOM_UUID=systets-$(uuidgen)" >> $GITHUB_OUTPUT
- name: Create k8s Kind Cluster
id: kind-cluster-install
uses: helm/[email protected]
with:
cluster_name: ${{ steps.uuid.outputs.RANDOM_UUID }}
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
timeout-minutes: 10
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run user flow test on US
env:
URL: https://cloud.us.armosec.io/compliance-kubernetes
email_user_flow: ${{ secrets.EMAIL_USER_FLOW_US }}
login_pass_user_flow: ${{ secrets.LOGIN_PASS_USER_FLOW_US }}
run: |
python userFlow.py $URL
- name: upload screenshots
uses: actions/upload-artifact@v4
if: always()
with:
name: screenshots-us
path: |
./*.png
# - name: Commit changes
# uses: EndBug/add-and-commit@v9
# if: inputs.URL == ''
# with:
# message: "Update logs with new data"
# author_name: bvolovat
# author_email: [email protected]
# commit: --signoff
# pull: '--ff-only'
# add: ./logs/*