glog/.github/workflows/coveralls.yml
Workflow config file is invalid. Please check your config file: yaml: line 10: did not find expected key
2021-11-19 20:56:53 +01:00

48 lines
1.1 KiB
YAML

name: Coveralls
on:
workflow_run:
workflows: [Linux]
types:
- completed
jobs:
finish:
defaults:
run:
shell: bash
runs-on: ubuntu-latest
- name: Generate Coverage
run: |
lcov --directory . --capture --output-file coverage.info
lcov --remove coverage.info \
'*/install/include/*' \
'*/msys64/mingw32/*' \
'*/msys64/mingw64/*' \
'*/src/*_unittest.cc' \
'*/src/googletest.h' \
'*/src/mock-log.h' \
'/usr/*' \
--output-file coverage.info
readarray -t build_dirs < <(ls -d build*/)
for file in src/glog/*.h.in; do
name=$(basename ${file})
name_we=${name%.h.in}
for build_dir in ${build_dirs[@]}; do
sed -i "s|${build_dir%/}/glog/${name_we}.h\$|${file}|g" coverage.info
done
done
lcov --list coverage.info
steps:
- name: Upload Coverage to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./coverage.info