diff --git a/.github/workflows/build_minimal_linux.yml b/.github/workflows/build_minimal_linux.yml index baecc02..004c58d 100644 --- a/.github/workflows/build_minimal_linux.yml +++ b/.github/workflows/build_minimal_linux.yml @@ -1,4 +1,4 @@ -name: C/C++ CI +name: Linux build check on: push: @@ -6,6 +6,10 @@ on: pull_request: branches: [ "master" ] +permissions: + issues: write + pull-requests: write + jobs: build: @@ -21,16 +25,10 @@ jobs: run: | cd aquamarine ./build.sh + - name: Run unit tests run: | cd aquamarine/unit_tests ./prepare_build.sh ./make_and_run_tests.sh - - name: Publish Test Results - uses: EnricoMi/publish-unit-test-result-action@v2 - if: always() - with: - files: | - test-results/**/am_ut_report.xml - test-results/**/*.xml - test-results/**/*.json + ls diff --git a/.github/workflows/build_minimal_windows.yml b/.github/workflows/build_minimal_windows.yml index 4c016ed..30b7065 100644 --- a/.github/workflows/build_minimal_windows.yml +++ b/.github/workflows/build_minimal_windows.yml @@ -1,4 +1,4 @@ -name: C/C++ CI +name: Windows build check on: push: @@ -18,3 +18,9 @@ jobs: run: | cd aquamarine ./build.sh + + - name: Run unit tests + run: | + cd aquamarine/unit_tests + ./prepare_build.sh + ./make_and_run_tests.sh \ No newline at end of file diff --git a/unit_tests/make_and_run_tests.sh b/unit_tests/make_and_run_tests.sh index cc52594..53f37b2 100755 --- a/unit_tests/make_and_run_tests.sh +++ b/unit_tests/make_and_run_tests.sh @@ -4,7 +4,8 @@ cd build && make -j8 && echo "UNIT TESTS SCRIPT: Binaries ready, starting execution..." && -./aquamarine_ut --gtest_output="xml:am_ut_report.xml" && +./aquamarine_ut --gtest_output="xml" && +cp test_detail.xml ../ echo "UNIT TESTS SCRIPT: Execution of tests finished." && if [ $(dpkg-query -W -f='${Status}' valgrind 2>/dev/null | grep -c "ok installed") -eq 0 ]; then