Skip to content

Fix error: unused variable 'result' #132

Fix error: unused variable 'result'

Fix error: unused variable 'result' #132

Workflow file for this run

name: Code Coverage
on: [push, pull_request]
jobs:
code_coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
run: cmake -E make_directory build
- name: Configure
working-directory: build/
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="--coverage" -DCMAKE_EXE_LINKER_FLAGS="--coverage"
- name: Build
working-directory: build/
run: cmake --build . --config Debug
- name: Test
working-directory: build/
run: ctest -C Debug --output-on-failure
- name: Collect code coverage
working-directory: build/
run: bash <(curl -s https://codecov.io/bash)