File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -378,3 +378,28 @@ jobs:
378
378
docker run -v ${PWD}/.github/workflows/smoke_test_assets:/mnt/smoke -t cbmc jbmc --classpath /mnt/smoke Test
379
379
- name : Smoke test goto-analyzer
380
380
run : docker run -v ${PWD}/.github/workflows/smoke_test_assets:/mnt/smoke -t cbmc goto-analyzer /mnt/smoke/test.goto --unreachable-functions
381
+
382
+ codecov-coverage-report :
383
+ runs-on : ubuntu-20.04
384
+ steps :
385
+ - name : Clone repository
386
+ uses : actions/checkout@v2
387
+ with :
388
+ submodules : recursive
389
+ - name : Download testing and coverage dependencies
390
+ run : sudo apt-get install --no-install-recommends -y g++ flex bison cmake maven jq libxml2-utils dpkg-dev openjdk-11-jdk-headless lcov
391
+ - name : Configure CMake CBMC build with coverage instrumentation parameters
392
+ run : cmake -S . -Bbuild '-Denable_coverage=1' '-Dparallel_tests=2' '-DCMAKE_CXX_COMPILER=/usr/bin/g++'
393
+ - name : Execute CMake CBMC build
394
+ run : cmake --build build --target coverage -- -j2
395
+ - name : Collect coverage statistics
396
+ run : |
397
+ lcov --capture --directory build --output-file lcov.info
398
+ lcov --remove lcov.info '/usr/*' --output-file lcov.info
399
+ - name : Upload coverage statistics to Codecov
400
+ uses : codecov/codecov-action@v1
401
+ with :
402
+ token : ${{ secrets.CODECOV_TOKEN }}
403
+ files : ./lcov.info
404
+ fail_ci_if_error : true
405
+ verbose : true
You can’t perform that action at this time.
0 commit comments