ci: name unpack step and fix indent

This commit is contained in:
Sergiu Deitsch 2021-11-19 21:31:29 +01:00
parent 6bd5acfb66
commit 1da31df93c

View File

@ -34,34 +34,36 @@ jobs:
var fs = require('fs');
fs.writeFileSync('${{github.workspace}}/' + artifact.name + '.zip', Buffer.from(download.data));
});
- run: |
- name: Unpack artifacts
run: |
unzip *.zip
- 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
- 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*/)
readarray -t build_dirs < <(ls -d build*/)
for file in src/glog/*.h.in; do
name=$(basename ${file})
name_we=${name%.h.in}
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
for build_dir in ${build_dirs[@]}; do
sed -i "s|${build_dir%/}/glog/${name_we}.h\$|${file}|g" coverage.info
done
done
done
lcov --list coverage.info
lcov --list coverage.info
- name: Upload Coverage to Coveralls
uses: coverallsapp/github-action@master