File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,23 @@ jobs:
188
188
189
189
mkdir test_results
190
190
unzip my_artifact.zip -d test_results 2> /dev/null || true
191
+ - name : Ensure junit-path exists and that all xml files are readable in path 'test_results/**/*xml' with this syntax
192
+ run : |
193
+ if [ ! -d "test_results" ]; then
194
+ echo "test_results directory does not exist"
195
+ exit 1
196
+ fi
197
+ if ! ls test_results/surefire-reports/*xml 1> /dev/null 2>&1; then
198
+ echo "No xml files found in test_results directory"
199
+ exit 1
200
+ fi
201
+ if ! ls -l test_results/surefire-reports/*xml 1> /dev/null 2>&1; then
202
+ echo "Not all xml files in test_results directory are readable"
203
+ exit 1
204
+ fi
205
+
206
+ echo "All xml files in test_results directory are readable"
207
+ ls -l test_results/surefire-reports/*xml
191
208
192
209
- name : Setup tmate session
193
210
uses : mxschmitt/action-tmate@v3.19
You can’t perform that action at this time.
0 commit comments