Skip to content

Commit cb78691

Browse files
Publish generated tests
1 parent 2e3c0d5 commit cb78691

File tree

1 file changed

+113
-14
lines changed

1 file changed

+113
-14
lines changed

.github/workflows/build-and-run-tests-from-branch.yml

Lines changed: 113 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,16 @@ jobs:
155155
with:
156156
name: composite_logs
157157
path: utbot-framework/logs/*
158-
158+
159+
- name: Upload generated tests
160+
if: ${{ always() }}
161+
uses: actions/upload-artifact@v2
162+
with:
163+
name: composite_generated_tests
164+
path: |
165+
tmp/UTBot/**.java
166+
tmp/UTBot/**.kt
167+
159168
- name: Upload test report if tests have failed
160169
if: ${{ failure() }}
161170
uses: actions/upload-artifact@v2
@@ -216,7 +225,16 @@ jobs:
216225
with:
217226
name: collections_part1_logs
218227
path: utbot-framework/logs/*
219-
228+
229+
- name: Upload generated tests
230+
if: ${{ always() }}
231+
uses: actions/upload-artifact@v2
232+
with:
233+
name: collections_part1_generated_tests
234+
path: |
235+
tmp/UTBot/**.java
236+
tmp/UTBot/**.kt
237+
220238
- name: Upload test report if tests have failed
221239
if: ${{ failure() }}
222240
uses: actions/upload-artifact@v2
@@ -273,7 +291,16 @@ jobs:
273291
with:
274292
name: collections_part2_logs
275293
path: utbot-framework/logs/*
276-
294+
295+
- name: Upload generated tests
296+
if: ${{ always() }}
297+
uses: actions/upload-artifact@v2
298+
with:
299+
name: collections_part2_generated_tests
300+
path: |
301+
tmp/UTBot/**.java
302+
tmp/UTBot/**.kt
303+
277304
- name: Upload test report if tests have failed
278305
if: ${{ failure() }}
279306
uses: actions/upload-artifact@v2
@@ -332,7 +359,16 @@ jobs:
332359
with:
333360
name: collections_part3_logs
334361
path: utbot-framework/logs/*
335-
362+
363+
- name: Upload generated tests
364+
if: ${{ always() }}
365+
uses: actions/upload-artifact@v2
366+
with:
367+
name: collections_part3_generated_tests
368+
path: |
369+
tmp/UTBot/**.java
370+
tmp/UTBot/**.kt
371+
336372
- name: Upload test report if tests have failed
337373
if: ${{ failure() }}
338374
uses: actions/upload-artifact@v2
@@ -393,7 +429,16 @@ jobs:
393429
with:
394430
name: examples_part1_logs
395431
path: utbot-framework/logs/*
396-
432+
433+
- name: Upload generated tests
434+
if: ${{ always() }}
435+
uses: actions/upload-artifact@v2
436+
with:
437+
name: examples_part1_generated_tests
438+
path: |
439+
tmp/UTBot/**.java
440+
tmp/UTBot/**.kt
441+
397442
- name: Upload test report if tests have failed
398443
if: ${{ failure() }}
399444
uses: actions/upload-artifact@v2
@@ -455,7 +500,16 @@ jobs:
455500
with:
456501
name: examples_part2_logs
457502
path: utbot-framework/logs/*
458-
503+
504+
- name: Upload generated tests
505+
if: ${{ always() }}
506+
uses: actions/upload-artifact@v2
507+
with:
508+
name: examples_part2_generated_tests
509+
path: |
510+
tmp/UTBot/**.java
511+
tmp/UTBot/**.kt
512+
459513
- name: Upload test report if tests have failed
460514
if: ${{ failure() }}
461515
uses: actions/upload-artifact@v2
@@ -516,7 +570,16 @@ jobs:
516570
with:
517571
name: examples_part3_logs
518572
path: utbot-framework/logs/*
519-
573+
574+
- name: Upload generated tests
575+
if: ${{ always() }}
576+
uses: actions/upload-artifact@v2
577+
with:
578+
name: examples_part3_generated_tests
579+
path: |
580+
tmp/UTBot/**.java
581+
tmp/UTBot/**.kt
582+
520583
- name: Upload test report if tests have failed
521584
if: ${{ failure() }}
522585
uses: actions/upload-artifact@v2
@@ -578,7 +641,16 @@ jobs:
578641
with:
579642
name: examples_part4_logs
580643
path: utbot-framework/logs/*
581-
644+
645+
- name: Upload generated tests
646+
if: ${{ always() }}
647+
uses: actions/upload-artifact@v2
648+
with:
649+
name: examples_part4_generated_tests
650+
path: |
651+
tmp/UTBot/**.java
652+
tmp/UTBot/**.kt
653+
582654
- name: Upload test report if tests have failed
583655
if: ${{ failure() }}
584656
uses: actions/upload-artifact@v2
@@ -633,8 +705,17 @@ jobs:
633705
uses: actions/upload-artifact@v2
634706
with:
635707
name: examples_lists_logs
636-
path: utbot-framework/logs/*
637-
708+
path: utbot-framework/logs/
709+
710+
- name: Upload generated tests
711+
if: ${{ always() }}
712+
uses: actions/upload-artifact@v2
713+
with:
714+
name: examples_lists_generated_tests
715+
path: |
716+
tmp/UTBot/**.java
717+
tmp/UTBot/**.kt
718+
638719
- name: Upload test report if tests have failed
639720
if: ${{ failure() }}
640721
uses: actions/upload-artifact@v2
@@ -690,7 +771,16 @@ jobs:
690771
with:
691772
name: examples_maps_logs
692773
path: utbot-framework/logs/*
693-
774+
775+
- name: Upload generated tests
776+
if: ${{ always() }}
777+
uses: actions/upload-artifact@v2
778+
with:
779+
name: examples_maps_generated_tests
780+
path: |
781+
tmp/UTBot/**.java
782+
tmp/UTBot/**.kt
783+
694784
- name: Upload test report if tests have failed
695785
if: ${{ failure() }}
696786
uses: actions/upload-artifact@v2
@@ -746,7 +836,16 @@ jobs:
746836
with:
747837
name: examples_strings_logs
748838
path: utbot-framework/logs/*
749-
839+
840+
- name: Upload generated tests
841+
if: ${{ always() }}
842+
uses: actions/upload-artifact@v2
843+
with:
844+
name: examples_strings_generated_tests
845+
path: |
846+
tmp/UTBot/**.java
847+
tmp/UTBot/**.kt
848+
750849
- name: Upload test report if tests have failed
751850
if: ${{ failure() }}
752851
uses: actions/upload-artifact@v2
@@ -1053,7 +1152,7 @@ jobs:
10531152
if: ${{ failure() }}
10541153
uses: actions/upload-artifact@v2
10551154
with:
1056-
name: junit-contest_tests_report
1155+
name: junit_contest_tests_report
10571156
path: utbot-junit-contest/build/reports/tests/test/*
10581157

10591158

@@ -1151,7 +1250,7 @@ jobs:
11511250
with:
11521251
name: summary-tests_logs
11531252
path: utbot-summary-tests/logs/*
1154-
1253+
11551254
- name: Upload test report if tests have failed
11561255
if: ${{ failure() }}
11571256
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)