name: coverage on: [push, pull_request] jobs: codecov: timeout-minutes: 10 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Compile tests working-directory: build env: CXXFLAGS: "--coverage -fno-inline" CXX: g++ run: | cmake -DENTT_BUILD_TESTING=ON -DENTT_BUILD_LIB=ON -DENTT_BUILD_EXAMPLE=ON .. make -j4 - name: Run tests working-directory: build env: CTEST_OUTPUT_ON_FAILURE: 1 run: ctest --timeout 5 -C Debug -j4 - name: Upload coverage to Codecov working-directory: build env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} run: | wget https://codecov.io/bash -O codecov chmod +x codecov ./codecov -a "-u" -t $CODECOV_TOKEN -B $GITHUB_REF -s .