43
43
- ' 2'
44
44
default : ' 0'
45
45
46
- PRINT_FAILED_TEST_LOGS :
47
- description : ' print failed test logs (1 to enable) - DONT DO FOR FULL REGRESSION (it crashes github )'
46
+ LOG_LEVEL :
47
+ description : ' Test logging verbosity (WARNING: anything other than minimal mode may crash GitHub Actions on large test runs )'
48
48
required : true
49
49
type : choice
50
50
options :
51
- - ' 0'
52
- - ' 1'
53
- default : ' 0'
54
- PRINT_ONGOING_TEST_LOGS :
55
- description : ' print ongoing test logs (1 to enable) - DONT DO FOR FULL REGRESSION (it crashes github)'
56
- required : true
57
- type : choice
58
- options :
59
- - ' 0'
60
- - ' 1'
61
- default : ' 0'
62
- HIDE_WEBDRIVER_LOGS :
63
- description : ' print webdriver logs (1 to hide, 0 to show). PRINT_ONGOING_TEST_LOGS or PRINT_FAILED_TEST_LOGS must be 1'
64
- required : true
65
- type : choice
66
- options :
67
- - ' 0'
68
- - ' 1'
69
- default : ' 1'
51
+ - ' minimal' # Recommended for full regressions
52
+ - ' failures' # Show failed test logs only
53
+ - ' verbose' # All test logs - use with caution!
54
+ default : ' minimal'
70
55
71
56
jobs :
72
57
android-regression :
83
68
APPIUM_ADB_FULL_PATH : ' /opt/android/platform-tools/adb'
84
69
ANDROID_SDK_ROOT : ' /opt/android'
85
70
PLAYWRIGHT_RETRIES_COUNT : ${{ github.event.inputs.PLAYWRIGHT_RETRIES_COUNT }}
86
- PRINT_FAILED_TEST_LOGS : ${{ github.event.inputs.PRINT_FAILED_TEST_LOGS }}
87
- PRINT_ONGOING_TEST_LOGS : ${{ github.event.inputs.PRINT_ONGOING_TEST_LOGS }}
71
+ PRINT_FAILED_TEST_LOGS : ${{ github.event.inputs.LOG_LEVEL != 'minimal' && '1' || '0' }}
72
+ PRINT_ONGOING_TEST_LOGS : ${{ github.event.inputs.LOG_LEVEL == 'verbose' && '1' || '0' }}
73
+ HIDE_WEBDRIVER_LOGS : ${{ github.event.inputs.LOG_LEVEL == 'minimal' && '1' || '0' }}
88
74
IOS_1_SIMULATOR : ' <just_not_empty>'
89
75
IOS_2_SIMULATOR : ' <just_not_empty>'
90
76
IOS_3_SIMULATOR : ' <just_not_empty>'
@@ -107,15 +93,15 @@ jobs:
107
93
uses : ./github/actions/fetch-allure-history
108
94
if : ${{ env.ALLURE_ENABLED == 'true' }}
109
95
with :
110
- PLATFORM : ${{env.PLATFORM}}
111
- GH_TOKEN : ${{ secrets.GITHUB_TOKEN}}
96
+ PLATFORM : ${{ env.PLATFORM }}
97
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
112
98
113
99
- uses : ./github/actions/print-runner-details
114
100
with :
115
101
APK_URL : ${{ github.event.inputs.APK_URL }}
116
102
RISK : ${{ github.event.inputs.RISK }}
117
- PRINT_FAILED_TEST_LOGS : ${{ github.event.inputs .PRINT_FAILED_TEST_LOGS }}
118
- PRINT_ONGOING_TEST_LOGS : ${{ github.event.inputs .PRINT_ONGOING_TEST_LOGS }}
103
+ PRINT_FAILED_TEST_LOGS : ${{ env .PRINT_FAILED_TEST_LOGS }}
104
+ PRINT_ONGOING_TEST_LOGS : ${{ env .PRINT_ONGOING_TEST_LOGS }}
119
105
PLAYWRIGHT_RETRIES_COUNT : ${{ github.event.inputs.PLAYWRIGHT_RETRIES_COUNT }}
120
106
121
107
- name : Download APK & extract it
0 commit comments