CI: Add validate-modfile step in drone (#69232)

* chore: test drone step

* revert changes to lint_backend_step()

* try to add validate_modifle_step

* try to run check func

* remove CGO and wire-install

* update filepath to scripts/modowners

* make drone again

* correct the filepath

* try to ignore validate-modfile step if fail

* chore: remove log that says i am a programmer

* fix: spell modfile correctly

* chore: remove unecessary comment

* fix: check go.mod instead of go.txd
This commit is contained in:
Kat Yang
2023-05-31 16:57:45 -04:00
committed by GitHub
parent fb7993d021
commit 293993ac09
3 changed files with 23 additions and 1 deletions
@@ -9,6 +9,7 @@ load(
"identify_runner_step",
"lint_backend_step",
"lint_drone_step",
"validate_modfile_step",
"wire_install_step",
)
load(
@@ -45,6 +46,7 @@ def lint_backend_pipeline(trigger, ver_mode):
test_steps = [
lint_backend_step(),
validate_modfile_step(),
]
if ver_mode == "main":
+10
View File
@@ -364,6 +364,16 @@ def lint_backend_step():
],
}
def validate_modfile_step():
return {
"name": "validate-modfile",
"image": go_image,
"failure": "ignore",
"commands": [
"go run scripts/modowners/modowners.go check go.mod",
],
}
def benchmark_ldap_step():
return {
"name": "benchmark-ldap",