How to fail CI build if Codecov target not met?

I am using Codecov step in my workflow in Bitrise.
I want, if the coverage it’s less that target in the file.yml, that the build in bitrise fail.
is it possible?, is there any way to fail Bitrise build process if coverage minimum requierement it is minor that the target?

This is my codecov.yml in my Android project, with a hard target, I seek to force the failure:

curl --data-binary @codecov.yml https://codecov.io/validate
Valid!

{
“coverage”: {
“precision”: 2,
“round”: “down”,
“range”: [
60.0,
90.0
],
“status”: {
“patch”: {
“default”: {
“target”: 100.0
}
},
“project”: {
“default”: {
“target”: 100.0
}
}
}
},
“comment”: {
“layout”: “reach, diff, flags, files”
}
}

Thanks if can help me.

@juanignacio_18 unfortunately we cannot make the Bitrise build fail, but with the way you have it set up, we should be failing a status check on your provider (e.g. GitHub, GitLab, Bitbucket).

Thanks Tom for your answer.
I have configured with webhooks in bitrise, so, I have to use bitbucket pipelines?, for example, with this failure?

Regards!

Hi @juanignacio_18 I will need some more information about the issue you’re having. Can you fill out the template when creating a new support issue?

Please search for similar issues before creating a ticket.
All fields below are required.

Description

Description of the issue

Commit SHAs

Please include the commit SHA(s)

Repository

A link to the repository in question

CI/CD or Build URL

Please provide which CI/CD you are using or a link to the build where coverage is being uploaded.

Uploader

Please provide which uploader you are using and command used to run it (e.g. Bash, Node, Python, GitHub Actions, etc…). If you are not using the uploader, we recommend switching to it before opening an issue here.

Codecov Output

Please provide the full output of running the uploader on your CI/CD. This will typically have the Codecov logo as ASCII.

Expected Results

Please provide what you expect to have happened (e.g. a file that has missing coverage on a particular line).

Actual Results

Please provide what actually happened.

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.