From ff5e2d8035aa1607430745e25166c2ce50406443 Mon Sep 17 00:00:00 2001
From: Anton Sattarov <sattarov@perx.ru>
Date: Thu, 30 Mar 2023 14:33:22 +0300
Subject: [PATCH] add junitfile

---
 .gitlab-ci.yml | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 578844ae..5beae32d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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
 
-- 
GitLab