mirror of
https://github.com/grafana/grafana.git
synced 2025-09-21 21:04:30 +08:00

* format drone starlark files with black * clean up unused params * more simplification * more cleanup * more cleanup
34 lines
634 B
Plaintext
34 lines
634 B
Plaintext
load(
|
|
'scripts/drone/steps/lib.star',
|
|
'identify_runner_step',
|
|
'yarn_install_step',
|
|
'lint_frontend_step',
|
|
)
|
|
|
|
load(
|
|
'scripts/drone/utils/utils.star',
|
|
'pipeline',
|
|
)
|
|
|
|
|
|
def lint_frontend_pipeline(trigger, ver_mode):
|
|
environment = {'EDITION': 'oss'}
|
|
|
|
init_steps = [
|
|
identify_runner_step(),
|
|
yarn_install_step(),
|
|
]
|
|
|
|
test_steps = [
|
|
lint_frontend_step(),
|
|
]
|
|
|
|
return pipeline(
|
|
name='{}-lint-frontend'.format(ver_mode),
|
|
edition="oss",
|
|
trigger=trigger,
|
|
services=[],
|
|
steps=init_steps + test_steps,
|
|
environment=environment,
|
|
)
|