diff --git a/src/cpp-app/workflows/ci.yml b/src/cpp-app/workflows/ci.yml index fdf21b6..074f003 100644 --- a/src/cpp-app/workflows/ci.yml +++ b/src/cpp-app/workflows/ci.yml @@ -64,7 +64,10 @@ jobs: run: ./build.sh -r - name: Run Unit Tests - run: build/bin/app_utests > test-results.md + shell: bash + run: | + set -o pipefail + build/bin/app_utests | tee test-results.md - name: Generate coverage report run: cd build && gcovr -r .. @@ -89,7 +92,9 @@ jobs: - name: Add test results to job summary run: | + echo -e "Unit test results: \n\`\`\` " >> $GITHUB_STEP_SUMMARY cat test-results.md >> $GITHUB_STEP_SUMMARY + echo -e "\n\`\`\`" >> $GITHUB_STEP_SUMMARY cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY - name: Run Linters