-
Notifications
You must be signed in to change notification settings - Fork 11.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Introduce
lint-backend
pipeline (#55476)
* Introduce lint-backend pipeline * Use go image and install make * Don't run lint pipeline on .drone.yml changes
- Loading branch information
1 parent
b25ea75
commit c184329
Showing
6 changed files
with
172 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
load( | ||
'scripts/drone/steps/lib.star', | ||
'identify_runner_step', | ||
'wire_install_step', | ||
'lint_backend_step', | ||
'lint_drone_step', | ||
'compile_build_cmd', | ||
) | ||
|
||
load( | ||
'scripts/drone/utils/utils.star', | ||
'pipeline', | ||
) | ||
|
||
def lint_backend_pipeline(trigger, ver_mode): | ||
wire_step = wire_install_step() | ||
wire_step.update({ 'depends_on': [] }) | ||
init_steps = [ | ||
identify_runner_step(), | ||
compile_build_cmd(), | ||
wire_step, | ||
] | ||
test_steps = [ | ||
lint_backend_step(edition="oss"), | ||
] | ||
if ver_mode == 'main': | ||
test_steps.extend([lint_drone_step()]) | ||
|
||
return pipeline( | ||
name='{}-lint-backend'.format(ver_mode), edition="oss", trigger=trigger, services=[], steps=init_steps + test_steps, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.