Skip to content

Commit e6d4685

Browse files
committed
Swift: split quick tests in separate action
Also, make the quick test list explicit in the action code, so we can catch an inadvertant test deletion.
1 parent 57a6162 commit e6d4685

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

.github/workflows/swift.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,18 @@ jobs:
4545
- 'swift/**/*.qll'
4646
# not using a matrix as you cannot depend on a specific job in a matrix, and we want to start linux checks
4747
# without waiting for the macOS build
48-
build-macos:
48+
build-and-test-macos:
4949
runs-on: macos-12-xl
5050
steps:
5151
- uses: actions/checkout@v3
52-
- uses: ./swift/actions/create-and-test-extractor-pack
53-
build-linux:
52+
- uses: ./swift/actions/create-extractor-pack
53+
- uses: ./swift/actions/run-quick-tests
54+
build-and-test-linux:
5455
runs-on: ubuntu-20.04
5556
steps:
5657
- uses: actions/checkout@v3
57-
- uses: ./swift/actions/create-and-test-extractor-pack
58+
- uses: ./swift/actions/create-extractor-pack
59+
- uses: ./swift/actions/run-quick-tests
5860
qltests-linux:
5961
needs: build-linux
6062
runs-on: ubuntu-latest
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Run Swift quick tests
2+
description: Runs Swift tests defined in Bazel. Must be run after `setup-env`
3+
runs:
4+
using: composite
5+
steps:
6+
- name: Run xcode-autobuilder tests
7+
if: ${{ runner.os == "macOS" }}
8+
shell: bash
9+
run: |
10+
bazel test //swift/xcode-autobuilder/tests
11+
- name: Run codegen tests
12+
shell: bash
13+
run: |
14+
bazel test //swift/codegen/tests
15+
- name: Run qltest tests
16+
shell: bash
17+
run: |
18+
bazel test //swift/tools/test/qltest

0 commit comments

Comments
 (0)