forked from cleveragents/cleveragents-core
48 lines
1.4 KiB
JSON
48 lines
1.4 KiB
JSON
{
|
|
"fixtures": [
|
|
{
|
|
"name": "coverage_validation",
|
|
"description": "A coverage-check validation with required mode",
|
|
"validation": {
|
|
"name": "local/coverage-check",
|
|
"description": "Check code coverage meets threshold",
|
|
"source": "custom",
|
|
"mode": "required",
|
|
"code": "def run(inputs): return {'passed': inputs['coverage'] >= 80}"
|
|
}
|
|
},
|
|
{
|
|
"name": "lint_validation",
|
|
"description": "A lint-check validation with informational mode",
|
|
"validation": {
|
|
"name": "local/lint-check",
|
|
"description": "Check lint results",
|
|
"source": "custom",
|
|
"mode": "informational",
|
|
"code": "def run(inputs): return {'passed': inputs['warnings'] == 0}"
|
|
}
|
|
},
|
|
{
|
|
"name": "attachment_required",
|
|
"description": "A validation attachment in required mode",
|
|
"attachment": {
|
|
"validation_name": "local/coverage-check",
|
|
"resource_id": "git-checkout/my-repo",
|
|
"mode": "required",
|
|
"project_name": "local/m3-smoke-proj"
|
|
}
|
|
},
|
|
{
|
|
"name": "attachment_informational",
|
|
"description": "A validation attachment in informational mode",
|
|
"attachment": {
|
|
"validation_name": "local/lint-check",
|
|
"resource_id": "git-checkout/my-repo",
|
|
"mode": "informational",
|
|
"project_name": null,
|
|
"plan_id": "01M3SM0KE00000000000000001"
|
|
}
|
|
}
|
|
]
|
|
}
|