-
Notifications
You must be signed in to change notification settings - Fork 0
122 lines (105 loc) · 3.34 KB
/
user_flow.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
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/*