Compare commits

...

3 Commits

Author SHA1 Message Date
Brock Allen
324b0f0eef Remove tarball from report artifacts
All checks were successful
ci / docker-build-and-test (pull_request) Successful in 3m14s
2024-05-05 03:17:47 +00:00
b0a2528514 Merge pull request 'test: Add ctest code coverage' (#5) from test/coverage into main
Some checks failed
ci / docker-build-and-test (push) Failing after 11s
Reviewed-on: #5
2024-03-04 01:01:07 -08:00
Brock Allen
54978e7e31 test: Add ctest code coverage
All checks were successful
ci / docker-build-and-test (pull_request) Successful in 3m9s
2024-03-04 08:55:50 +00:00
2 changed files with 8 additions and 3 deletions

View File

@@ -46,8 +46,7 @@ jobs:
staging="reports-${{github.run_number}}"
mkdir -p "$staging"
cp -r tests/unittest/build/artifacts/gcov "$staging"
tar czf "$staging.tar.gz" "$staging"
echo "ASSET=$staging.tar.gz" >> $GITHUB_ENV
echo "ASSET=$staging" >> $GITHUB_ENV
-
name: Archive artifacts
uses: actions/upload-artifact@v3

View File

@@ -26,7 +26,13 @@ target_include_directories(
enable_testing()
add_test(
NAME ceedling
NAME coverage
COMMAND bash -c "ceedling clobber; ceedling gcov:all; ceedling utils:gcov"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/tests/unittest
)
add_test(
NAME ceedling
COMMAND bash -c "ceedling clobber; ceedling test:all"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/tests/unittest
)