Swift: Use ... to find and run all Bazel tests instead of having to list them.

This commit is contained in:
Alexandre Boulgakov
2023-05-15 20:51:31 +01:00
parent 167a5723b4
commit 8db945a11e

View File

@@ -53,21 +53,16 @@ runs:
shell: bash
run: |
bazel run //swift:create-extractor-pack
- name: Run xcode-autobuilder tests
if : ${{ github.event_name == 'pull_request' && runner.os == 'macOS' }}
shell: bash
run: |
bazel test //swift/xcode-autobuilder/tests
- name: Run codegen tests
if : ${{ github.event_name == 'pull_request' }}
shell: bash
run: |
bazel test //misc/codegen/test
- name: Run qltest tests
if : ${{ github.event_name == 'pull_request' }}
bazel test //misc/codegen/...
- name: Run Swift tests
if: ${{ github.event_name == 'pull_request' }}
shell: bash
run: |
bazel test //swift/tools/test/qltest
bazel test //swift/...
- name: Evict bazel cache
if: ${{ github.event_name != 'pull_request' }}
shell: bash