Skip to content

Commit bfc37fd

Browse files
committed
Bazel: move --build_tests_only from swift action to .bazelrc
1 parent 3f19974 commit bfc37fd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ common --override_module=semmle_code=%workspace%/misc/bazel/semmle_code_stub
1010

1111
build --repo_env=CC=clang --repo_env=CXX=clang++
1212

13+
# we use transitions that break builds of `...`, so for `test` to work with that we need the following
14+
test --build_tests_only
15+
1316
# this requires developer mode, but is required to have pack installer functioning
1417
startup --windows_enable_symlinks
1518
common --enable_runfiles

swift/actions/build-and-test/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ runs:
5858
if: ${{ github.event_name == 'pull_request' }}
5959
shell: bash
6060
run: |
61-
bazel test --build_tests_only //swift/...
61+
bazel test //swift/...
6262
- name: Evict bazel cache
6363
if: ${{ github.event_name != 'pull_request' }}
6464
shell: bash

0 commit comments

Comments
 (0)