From df50af2bc5a562ceb1c3b80fef65c9eefb32cb72 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Wed, 26 Jan 2022 12:00:28 +0100 Subject: [PATCH] ci: only build test targets for components repo unit test job (#44832) To speed up the components CI job (avoiding it being a bottleneck in FW), we will stop building everything in `src/...`, but rather only build targets which are needed to run all tests within `src/...`. This notably should avoid unnecessary NPM package building. Arguably that part would also be valuable to have, but we already test the `ng_package` rule in FW itself, plus we run snapshot tests in the components repo as well. PR Close #44832 --- scripts/ci/run_angular_components_unit_tests.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/ci/run_angular_components_unit_tests.sh b/scripts/ci/run_angular_components_unit_tests.sh index 17596b297af..c57047820a6 100755 --- a/scripts/ci/run_angular_components_unit_tests.sh +++ b/scripts/ci/run_angular_components_unit_tests.sh @@ -14,4 +14,8 @@ cd ${COMPONENTS_REPO_TMP_DIR} ./scripts/circleci/setup_bazel_binary.sh # Now actually run the tests. -bazel test --build_tag_filters=-docs-package,-e2e,-browser:firefox-local --test_tag_filters=-e2e,-browser:firefox-local -- src/... +bazel test \ + --build_tag_filters=-docs-package,-e2e,-browser:firefox-local \ + --test_tag_filters=-e2e,-browser:firefox-local \ + --build_tests_only \ + -- src/...