diff --git a/.github/actions/run-tests/action.yml b/.github/actions/run-tests/action.yml index f7b8ab665..57464fcb1 100644 --- a/.github/actions/run-tests/action.yml +++ b/.github/actions/run-tests/action.yml @@ -15,7 +15,7 @@ runs: using: "composite" steps: - - name: unittests + - name: Unit Tests id: unittests env: QT_QPA_PLATFORM: offscreen @@ -29,16 +29,16 @@ runs: shell: bash continue-on-error: true - - name: legacytests + - name: Legacy Tests id: legacytests env: QT_QPA_PLATFORM: offscreen run: | - ./${{ inputs.bin-dir }}/unittests + ./${{ inputs.bin-dir }}/legacytests result=$? if [ $result -ne 0 ]; then - echo "Unit tests failed with code: $result" >> $GITHUB_STEP_SUMMARY + echo "Legacy tests failed with code: $result" >> $GITHUB_STEP_SUMMARY fi shell: bash continue-on-error: true diff --git a/.github/workflows/sonarcloud-analysis.yml b/.github/workflows/sonarcloud-analysis.yml index a8d645a2d..4f20b74b4 100644 --- a/.github/workflows/sonarcloud-analysis.yml +++ b/.github/workflows/sonarcloud-analysis.yml @@ -44,22 +44,23 @@ jobs: -G "Ninja" \ -DCMAKE_BUILD_TYPE="Debug" \ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ + -DSKIP_BUILD_TESTS=ON \ -DENABLE_COVERAGE=ON - name: Build run: | build-wrapper-linux-x86-64 --out-dir bw-output cmake --build build -j${CPU_CORE_COUNT} - - name: Unit tests coverage + - name: Legacy tests coverage env: QT_QPA_PLATFORM: offscreen - run: cmake --build build --target coverage-unittests + run: cmake --build build --target coverage-legacytests - name: Get coverage report paths id: coverage-paths run: | - unittests=$(find build -name coverage-unittests.xml) - paths="${unittests}" + legacytests=$(find build -name coverage-legacytests.xml) + paths="${legacytests}" if [ -z "$paths" ]; then echo "Error: No coverage files found" exit 1 diff --git a/.github/workflows/valgrind-analysis.yml b/.github/workflows/valgrind-analysis.yml index 0a669c9b3..f8aa08f6f 100644 --- a/.github/workflows/valgrind-analysis.yml +++ b/.github/workflows/valgrind-analysis.yml @@ -31,10 +31,10 @@ jobs: run: cmake --build build -j8 - name: Valgrind unit tests - id: unittests + id: legacytests uses: ./.github/actions/run-valgrind with: - executable: ./build/bin/unittests + executable: ./build/bin/legacytests - name: Set job summary run: | @@ -42,9 +42,9 @@ jobs: message=$(cat < WORKING_DIRECTORY ${m_WORKING_DIRECTORY}) set_tests_properties(${m_NAME} PROPERTIES DEPENDS ${m_DEPENDS}) set_property(GLOBAL APPEND PROPERTY ${CMAKE_PROJECT_NAME}_tests ${m_NAME}) + endfunction() enable_testing()