Skip to content

Commit e002cce

Browse files
committed
MINOR: ci: add reports for test fails
1 parent d777465 commit e002cce

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.gitlab/unit-tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
unit-tests:
22
needs: ["diff", "tidy"]
3+
variables:
4+
GOTESTSUM_JUNITFILE: "unit-tests-report.xml"
35
rules:
46
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
57
- if: "$CI_PROJECT_NAMESPACE != 'haproxy-controller/community' && $CI_PIPELINE_SOURCE == 'push'"
@@ -13,3 +15,9 @@ unit-tests:
1315
- export PATH=$PATH:/root/go/bin
1416
script:
1517
- task test
18+
artifacts:
19+
when: always
20+
paths:
21+
- unit-tests-report.xml
22+
reports:
23+
junit: unit-tests-report.xml

0 commit comments

Comments
 (0)