mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 01:42:12 +08:00
Introduce lint-frontend pipeline (#55559)
This commit is contained in:

committed by
GitHub

parent
08d352a0ad
commit
a9a86cbe54
25
scripts/drone/pipelines/lint_frontend.star
Normal file
25
scripts/drone/pipelines/lint_frontend.star
Normal file
@ -0,0 +1,25 @@
|
||||
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):
|
||||
yarn_step = yarn_install_step()
|
||||
yarn_step.update({ 'depends_on': [] })
|
||||
init_steps = [
|
||||
identify_runner_step(),
|
||||
yarn_step,
|
||||
]
|
||||
test_steps = [
|
||||
lint_frontend_step(),
|
||||
]
|
||||
return pipeline(
|
||||
name='{}-lint-frontend'.format(ver_mode), edition="oss", trigger=trigger, services=[], steps=init_steps + test_steps,
|
||||
)
|
@ -3,7 +3,6 @@ load(
|
||||
'identify_runner_step',
|
||||
'download_grabpl_step',
|
||||
'yarn_install_step',
|
||||
'lint_frontend_step',
|
||||
'betterer_frontend_step',
|
||||
'test_frontend_step',
|
||||
'compile_build_cmd',
|
||||
@ -22,7 +21,6 @@ def test_frontend(trigger, ver_mode):
|
||||
compile_build_cmd(),
|
||||
]
|
||||
test_steps = [
|
||||
lint_frontend_step(),
|
||||
betterer_frontend_step(),
|
||||
test_frontend_step(),
|
||||
]
|
||||
|
Reference in New Issue
Block a user