Skip to content

Commit

Permalink
Add path to report
Browse files Browse the repository at this point in the history
  • Loading branch information
ben committed Apr 1, 2024
1 parent 7ed51c8 commit 8ef512a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/build_minimal_linux.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: C/C++ CI
name: Linux build check

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
issues: write
pull-requests: write

jobs:
build:

Expand All @@ -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
8 changes: 7 additions & 1 deletion .github/workflows/build_minimal_windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: C/C++ CI
name: Windows build check

on:
push:
Expand All @@ -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
3 changes: 2 additions & 1 deletion unit_tests/make_and_run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ef512a

Please sign in to comment.