Skip to content

Commit 2710c1b

Browse files
pawelbezawearyzen
authored andcommitted
test: Run devtool build in CI
This would prevent us from breaking devtool build cmd when updating the devctr. Signed-off-by: Paweł Bęza <pawel.beza99@gmail.com>
1 parent 755ffdf commit 2710c1b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.buildkite/pipeline_pr.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ def get_changed_files(branch):
4040
}
4141
defaults = overlay_dict(defaults, args.step_param)
4242

43+
devtool_build_grp = group(
44+
"📦 Devtool Sanity Build",
45+
"./tools/devtool -y build",
46+
**defaults,
47+
)
48+
4349
build_grp = group(
4450
"📦 Build",
4551
"./tools/devtool -y test -- ../tests/integration_tests/build/",
@@ -100,6 +106,11 @@ def get_changed_files(branch):
100106

101107
steps = [step_style]
102108
changed_files = get_changed_files("main")
109+
110+
# run sanity build of devtool if Dockerfile is changed
111+
if any(x.parts[-1] == "Dockerfile" for x in changed_files):
112+
steps += [devtool_build_grp]
113+
103114
# run the whole test suite if either of:
104115
# - any file changed that is not documentation nor GitHub action config file
105116
# - no files changed

0 commit comments

Comments
 (0)