@@ -2,64 +2,8 @@ name: test
2
2
on : { pull_request: {} }
3
3
4
4
jobs :
5
- linux-all :
6
- strategy :
7
- fail-fast : false
8
- matrix :
9
- swiftver :
10
- - swift:5.2
11
- - swift:5.3
12
- - swift:5.4
13
- - swift:5.5
14
- - swiftlang/swift:nightly-main
15
- swiftos :
16
- - focal
17
- container : ${{ format('{0}-{1}', matrix.swiftver, matrix.swiftos) }}
18
- runs-on : ubuntu-latest
19
- env :
20
- LOG_LEVEL : debug
21
- steps :
22
- - name : Check out package
23
- uses : actions/checkout@v2
24
- - name : Run tests with code coverage and Thread Sanitizer
25
- run : swift test --enable-test-discovery --sanitize=thread --enable-code-coverage
26
- - name : Submit coverage report to Codecov.io
27
-
28
- with :
29
- cc_flags : ' unittests'
30
- cc_env_vars : ' SWIFT_VERSION,SWIFT_PLATFORM,RUNNER_OS,RUNNER_ARCH'
31
- cc_fail_ci_if_error : true
32
- cc_verbose : true
33
-
34
- macos-all :
35
- strategy :
36
- fail-fast : false
37
- matrix :
38
- xcode :
39
- - latest-stable
40
- - latest
41
- include :
42
- - xcode : latest-stable
43
- filter : ' --skip=^AsyncKitTests.EventLoopConcurrencyTests'
44
- runs-on : macos-11
45
- env :
46
- LOG_LEVEL : debug
47
- steps :
48
- - name : Select latest available Xcode
49
- uses : maxim-lobanov/setup-xcode@v1
50
- with :
51
- xcode-version : ${{ matrix.xcode }}
52
- - name : Checkout code
53
- uses : actions/checkout@v2
54
- - name : Run tests with code coverage and Thread Sanitizer
55
- run : |
56
- swift test --enable-test-discovery ${{ matrix.filter }} --sanitize=thread --enable-code-coverage \
57
- -Xlinker -rpath \
58
- -Xlinker $(xcode-select -p)/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/macosx
59
- - name : Submit coverage report to Codecov.io
60
-
61
- with :
62
- cc_flags : ' unittests'
63
- cc_env_vars : ' MD_APPLE_SDK_ROOT,RUNNER_OS,RUNNER_ARCH'
64
- cc_fail_ci_if_error : true
65
- cc_verbose : true
5
+ unit-tests :
6
+ uses : vapor/ci/.github/workflows/run-unit-tests.yml@reusable-workflows
7
+ with :
8
+ with_coverage : true
9
+ with_tsan : true
0 commit comments