Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
build: do not build unnecessary build targets in bazel test jobs #18158
Currently in Bazel test jobs we simply use
We verify our build in a separate
Currently in Bazel test jobs we simply use `//src/...`. This results in non-test targets which are simply unnecessary (e.g. npm_packages), being built. Instead, we can specify `--build_tests_only` to instruct bazel to only build targets needed for testing. We verify our build in a separate `bazel_build` job, so building unrelated things in every test job is superfluos.