Skip to content
Snippets Groups Projects
Commit ff5e2d80 authored by Anton Sattarov's avatar Anton Sattarov :cucumber:
Browse files

add junitfile

parent 51791e19
No related branches found
No related tags found
No related merge requests found
......@@ -4,21 +4,16 @@ stages:
- test
run_tests:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)'
stage: test
script:
- go fmt ./...
- go vet ./...
- go install gotest.tools/gotestsum@v1.7.0
- gotestsum --junitfile report.xml --format testname -- -timeout 500s ./...
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
changes:
- frontend/**/*
- Dockerfile-frontend
when: never
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)'
- go install gotest.tools/gotestsum@latest
- gotestsum --junitfile report.xml --format testname -- -timeout 500s
artifacts:
when: always
reports:
junit: report.xml
junit: report.xm
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment