From bfc37fddffd19ea3eefb1dc2984095b1531a4abc Mon Sep 17 00:00:00 2001 From: Paolo Tranquilli Date: Fri, 31 May 2024 12:35:52 +0200 Subject: [PATCH] Bazel: move `--build_tests_only` from swift action to `.bazelrc` --- .bazelrc | 3 +++ swift/actions/build-and-test/action.yml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.bazelrc b/.bazelrc index 87b611fe954f..e2ccb69be902 100644 --- a/.bazelrc +++ b/.bazelrc @@ -10,6 +10,9 @@ common --override_module=semmle_code=%workspace%/misc/bazel/semmle_code_stub build --repo_env=CC=clang --repo_env=CXX=clang++ +# we use transitions that break builds of `...`, so for `test` to work with that we need the following +test --build_tests_only + # this requires developer mode, but is required to have pack installer functioning startup --windows_enable_symlinks common --enable_runfiles diff --git a/swift/actions/build-and-test/action.yml b/swift/actions/build-and-test/action.yml index 25034ab77318..2522f545c05f 100644 --- a/swift/actions/build-and-test/action.yml +++ b/swift/actions/build-and-test/action.yml @@ -58,7 +58,7 @@ runs: if: ${{ github.event_name == 'pull_request' }} shell: bash run: | - bazel test --build_tests_only //swift/... + bazel test //swift/... - name: Evict bazel cache if: ${{ github.event_name != 'pull_request' }} shell: bash