telefonicaid / fiware-orion

Context Broker and CEF building block for context data management, providing NGSI interfaces.
https://fiware-orion.rtfd.io/
GNU Affero General Public License v3.0
212 stars 265 forks source link

GitAction for code coverage #3766

Open fgalan opened 3 years ago

fgalan commented 3 years ago

The standard makefile generates a coverage report in coverage/ directory using a command like this:

make coverage INSTALL_DIR=~

It would be great to add this to GitActions, which means that also some modifications to the CI docker image has to be done. Some more detail about this task:

fgalan commented 3 years ago

@wistefan you have been recently involved wigh GitActions for Orion. It would be great if you could have a look and help with this, please :)

wistefan commented 3 years ago

Hi, I wont have the time to do it myself in the next few weeks, but you can use the solution I built for orion-ld repo as starting point: Action with Coveralls integration: https://github.com/FIWARE/context.Orion-LD/blob/develop/.github/workflows/coverage.yml LCov in docker-image: https://github.com/FIWARE/context.Orion-LD/blob/develop/docker/Dockerfile-test#L5 Coverage for functional tests: https://github.com/FIWARE/context.Orion-LD/blob/develop/docker/build.sh#L337-L381 Coverage for unit-tests: https://github.com/FIWARE/context.Orion-LD/blob/develop/docker/build.sh#L293-L303 & https://github.com/FIWARE/context.Orion-LD/blob/develop/makefile#L348-L370