Feb 19, 2021
That is great question! I think you can handle by shell script. Because gitlab CI fully support shell script. In the sh file, you can find to know the coverage percentage with regular expression in this post. If it is not enough coverage you can exit script that make build fail. After that you add this file to execute script job in .gitlab-ci.yml file.