Skip to content

build: do not build unnecessary build targets in bazel test jobs #18158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ jobs:
- *yarn_install
- *setup_bazel_binary

- run: bazel test src/... --build_tag_filters=e2e --test_tag_filters=e2e
- run: bazel test src/... --build_tag_filters=e2e --test_tag_filters=e2e --build_tests_only

# ------------------------------------------------------------------------------------------
# Job that runs the unit tests on locally installed browsers (Chrome and Firefox headless).
Expand All @@ -225,7 +225,7 @@ jobs:
- *yarn_install
- *setup_bazel_binary

- run: bazel test src/... --build_tag_filters=-e2e --test_tag_filters=-e2e
- run: bazel test src/... --build_tag_filters=-e2e --test_tag_filters=-e2e --build_tests_only

# ----------------------------------------------------------------------------
# Job that runs the unit tests on Browserstack. The browsers that will be used
Expand Down Expand Up @@ -435,7 +435,7 @@ jobs:
- *yarn_install_loose_lockfile
- *setup_bazel_binary

- run: bazel test src/... --build_tag_filters=-e2e --test_tag_filters=-e2e
- run: bazel test src/... --build_tag_filters=-e2e --test_tag_filters=-e2e --build_tests_only

# ----------------------------------------------------------------------------
# Job that runs all Bazel tests against View Engine with the current Angular version
Expand All @@ -456,8 +456,7 @@ jobs:
- *setup_bazel_binary

# Run project tests with NGC and View Engine.
- run: bazel build src/... --build_tag_filters=-docs-package,-e2e --config=view-engine
- run: bazel test src/... --build_tag_filters=-docs-package,-e2e --test_tag_filters=-e2e --config=view-engine
- run: bazel test src/... --build_tag_filters=-docs-package,-e2e --test_tag_filters=-e2e --config=view-engine --build_tests_only

# ----------------------------------------------------------------------------
# Job that runs all Bazel tests against View Engine from angular/angular#master.
Expand All @@ -478,8 +477,7 @@ jobs:
- *setup_bazel_binary

# Run project tests with NGC and View Engine.
- run: bazel build src/... --build_tag_filters=-docs-package,-e2e --config=view-engine
- run: bazel test src/... --build_tag_filters=-docs-package,-e2e --test_tag_filters=-e2e --config=view-engine
- run: bazel test src/... --build_tag_filters=-docs-package,-e2e --test_tag_filters=-e2e --config=view-engine --build_tests_only

# ----------------------------------------------------------------------------
# Job that runs all Bazel tests against material-components-web@canary
Expand All @@ -503,8 +501,7 @@ jobs:

# Setup the components repository to use the MDC snapshot builds.
# Run project tests with the MDC canary builds.
- run: bazel build src/... --build_tag_filters=-docs-package,-e2e
- run: bazel test src/... --build_tag_filters=-docs-package,-e2e --test_tag_filters=-e2e
- run: bazel test src/... --build_tag_filters=-docs-package,-e2e --test_tag_filters=-e2e --build_tests_only

# ----------------------------------------------------------------------------------------
# Workflow definitions. A workflow usually groups multiple jobs together. This is useful if
Expand Down