grafana/scripts/drone/pipelines/test_frontend.star
Kevin Minehart d567f199dd
CI: add the grabpl build-backend command into the repo (#52673)
* Move the grabpl build-backend command and clean it up a bit
2022-07-28 10:11:22 -04:00

34 lines
813 B
Plaintext

load(
'scripts/drone/steps/lib.star',
'identify_runner_step',
'download_grabpl_step',
'gen_version_step',
'yarn_install_step',
'lint_frontend_step',
'betterer_frontend_step',
'test_frontend_step',
'compile_build_cmd',
)
load(
'scripts/drone/utils/utils.star',
'pipeline',
)
def test_frontend(trigger, ver_mode):
init_steps = [
identify_runner_step(),
download_grabpl_step(),
gen_version_step(ver_mode),
yarn_install_step(),
compile_build_cmd(),
]
test_steps = [
lint_frontend_step(),
betterer_frontend_step(),
test_frontend_step(),
]
return pipeline(
name='{}-test-frontend'.format(ver_mode), edition="oss", trigger=trigger, services=[], steps=init_steps + test_steps,
)