Skip to content

Commit

Permalink
chore: fix buildbuddy
Browse files Browse the repository at this point in the history
  • Loading branch information
longlho committed Oct 17, 2022
1 parent 3887aa4 commit d2f9178
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,8 @@
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[shellscript]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
}
}
}
11 changes: 11 additions & 0 deletions buildbuddy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
actions:
- name: push
triggers: push
bazel_commands:
- bazel run //tools:update_submodules
- bazel test //...
- name: pr
triggers: pull_request
bazel_commands:
- bazel run //tools:update_submodules
- bazel test //...
7 changes: 7 additions & 0 deletions tools/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ load(":index.bzl", "check_format")
exports_files([
"tsconfig.golden.json",
"supported-locales-gen.ts",
"update_submodules.sh"
])

check_format(
Expand Down Expand Up @@ -69,3 +70,9 @@ js_binary(
entry_point = ":supported-locales-gen-transpiled",
visibility = ["//visibility:public"],
)


sh_binary(
name="update_submodules",
srcs=["//tools:update_submodules.sh"]
)
1 change: 1 addition & 0 deletions tools/update_submodules.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cd "$BUILD_WORKSPACE_DIRECTORY" && git submodule update --init --recursive

0 comments on commit d2f9178

Please sign in to comment.