Skip to content

Commit

Permalink
ci: report results
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbartell committed Jun 7, 2023
1 parent 6b21322 commit ffc4094
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,14 @@ jobs:
- name: Integration Tests
run: |
cd build/
ctest --output-on-failure
ctest --output-on-failure | tee -a $GITHUB_STEP_SUMMARY
- name: Archive Test Results
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: system_test_results
path: |
build/Testing/Temporary/LastTest.log
unit-tests-with-sanitizer:
runs-on: ubuntu-latest
Expand All @@ -48,7 +55,7 @@ jobs:
- name: Unit Tests
run: |
cd build/
ctest --output-on-failure
ctest --output-on-failure | tee -a $GITHUB_STEP_SUMMARY
unit-tests:
runs-on: ubuntu-latest
Expand All @@ -66,19 +73,32 @@ jobs:
-DSYSTEM_TESTS=0 \
-DCMAKE_C_FLAGS="${CFLAGS}"
make -C build/ all
- name: Unit Tests
- name: Run Unit Tests
run: |
cd build/
ctest --output-on-failure
ctest --output-on-failure | tee -a $GITHUB_STEP_SUMMARY
cd ..
- name: Collect Coverage
- name: Run and Collect Coverage
if: success() || failure()
run: |
make -C build/ coverage
lcov --rc lcov_branch_coverage=1 --remove build/coverage.info '*test*' --output-file build/coverage.info
lcov --rc lcov_branch_coverage=1 --remove build/coverage.info '*CMakeCCompilerId*' --output-file build/coverage.info
lcov --rc lcov_branch_coverage=1 --remove build/coverage.info '*mocks*' --output-file build/coverage.info
lcov --list build/coverage.info
- name: Archive Test Results
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: unit_test_results
path: |
build/utest_report.txt
build/*_out.txt
build/coverage.info
build/report.xml
build/Testing/Temporary/LastTest.log
- name: Upload coverage data to Codecov
if: success()
uses: codecov/codecov-action@v3
with:
files: build/coverage.info
Expand Down

0 comments on commit ffc4094

Please sign in to comment.