Chore: Add new drone step to validate OpenAPI specification (#75034)
* chore: add new drone step to validate openapi specification * fix: update make before running make command
This commit is contained in:
@@ -10,6 +10,7 @@ load(
|
||||
"lint_backend_step",
|
||||
"lint_drone_step",
|
||||
"validate_modfile_step",
|
||||
"validate_openapi_spec_step",
|
||||
"wire_install_step",
|
||||
)
|
||||
load(
|
||||
@@ -46,6 +47,7 @@ def lint_backend_pipeline(trigger, ver_mode):
|
||||
test_steps = [
|
||||
lint_backend_step(),
|
||||
validate_modfile_step(),
|
||||
validate_openapi_spec_step(),
|
||||
]
|
||||
|
||||
if ver_mode == "main":
|
||||
|
||||
@@ -226,6 +226,16 @@ def validate_modfile_step():
|
||||
],
|
||||
}
|
||||
|
||||
def validate_openapi_spec_step():
|
||||
return {
|
||||
"name": "validate-openapi-spec",
|
||||
"image": images["go"],
|
||||
"commands": [
|
||||
"apk add --update make",
|
||||
"make validate-api-spec",
|
||||
],
|
||||
}
|
||||
|
||||
def dockerize_step(name, hostname, port):
|
||||
return {
|
||||
"name": name,
|
||||
|
||||
Reference in New Issue
Block a user