mirror of
https://github.com/grafana/grafana.git
synced 2025-01-11 00:22:06 -06:00
7a2edd35d5
* cleanup dead code * add tests and rewrite publish grafanacom steps to reuse * add pkg/build tests; don't upload CDN assets on grafana releases
28 lines
600 B
Plaintext
28 lines
600 B
Plaintext
"""
|
|
This module returns a Drone pipeline that verifies all Starlark files are linted.
|
|
"""
|
|
|
|
load(
|
|
"scripts/drone/steps/lib.star",
|
|
"identify_runner_step",
|
|
"lint_starlark_step",
|
|
)
|
|
load(
|
|
"scripts/drone/utils/utils.star",
|
|
"pipeline",
|
|
)
|
|
|
|
def verify_starlark(trigger, ver_mode):
|
|
environment = {"EDITION": "oss"}
|
|
steps = [
|
|
identify_runner_step(),
|
|
lint_starlark_step(),
|
|
]
|
|
return pipeline(
|
|
name = "{}-verify-starlark".format(ver_mode),
|
|
trigger = trigger,
|
|
services = [],
|
|
steps = steps,
|
|
environment = environment,
|
|
)
|