-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
49 lines (45 loc) 路 1.44 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Test Matrix
on:
pull_request:
push:
branches:
- master
jobs:
Linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image:
- swift:5.2-xenial
- swift:5.2-bionic
- swiftlang/swift:nightly-5.2-xenial
- swiftlang/swift:nightly-5.2-bionic
- swiftlang/swift:nightly-5.3-xenial
- swiftlang/swift:nightly-5.3-bionic
- swiftlang/swift:nightly-master-xenial
- swiftlang/swift:nightly-master-bionic
- swiftlang/swift:nightly-master-focal
include:
- image: swiftlang/swift:nightly-master-centos8
depscmd: dnf install -y zlib-devel
- image: swiftlang/swift:nightly-master-amazonlinux2
depscmd: yum install -y zlib-devel
container: ${{ matrix.image }}
steps:
- name: Install dependencies if needed
run: ${{ matrix.depscmd }}
- name: Check out code
uses: actions/checkout@v2
- name: Run tests with Thread Sanitizer
run: swift test --enable-test-discovery --sanitize=thread
macOS:
runs-on: macos-latest
steps:
- name: Select latest available Xcode
uses: maxim-lobanov/setup-xcode@1.0
with: { 'xcode-version': 'latest' }
- name: Check out code
uses: actions/checkout@v2
- name: Run tests with Thread Sanitizer
run: swift test --enable-test-discovery --sanitize=thread