Repository: analysis-dev/diktat (kotlin)

Issue:
`Update metrics` workflow fails after SAVE has been integrated
In `build_and_test` we started to build the project in two passes: build jars and then run tests, because SAVE requires pre-built JAR. However, we haven't updated `metrics_for_master.yml` workflow the same way

Pull request description:
### What's done:
* updated metrics
Closes #1461

Patch:
diff --git a/.github/workflows/metrics_for_master.yml b/.github/workflows/metrics_for_master.yml
index f31fbeacab..155cb76d7c 100644
--- a/.github/workflows/metrics_for_master.yml
+++ b/.github/workflows/metrics_for_master.yml
@@ -28,9 +28,11 @@ jobs:
           key: maven-build-${{ hashFiles('**/pom.xml') }}
           restore-keys: |
             maven-build-
-      - name: Run tests
+      - name: Maven Install
         # we need to run `install` goal here so that gradle will be able to resolve dependencies and run tests on diktat-gradle-plugin
-        run: mvn -B install -DskipPluginMarker
+        run: mvn -B install -DskipPluginMarker -DskipTests
+      - name: Run tests
+        run: mvn verify
       - name: Generate code coverage report
         uses: codecov/codecov-action@v3
         with:


Test patch:
diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml
index 330224f782..939765f846 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -26,7 +26,7 @@ jobs:
       - name: Maven Install
         run: mvn -B clean install -DskipTests
       - name: Maven run test
-        run: mvn test
+        run: mvn verify
       - name: Code coverage report
         uses: codecov/codecov-action@v3
         with:
@@ -158,7 +158,7 @@ jobs:
       - name: Maven run test
         if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }}
         run: |
-          mvn test
+          mvn verify
         shell: bash
 
       - name: Maven Install on windows
@@ -170,7 +170,7 @@ jobs:
       - name: Maven run test
         if: runner.os == 'Windows'
         run: |
-          mvn test
+          mvn verify
         shell: cmd
 
         # This step needs a Git repository, so it's impossible to extract it