|
1 | 1 | name: test
|
2 | 2 | on:
|
3 |
| -- pull_request |
| 3 | + pull_request: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - master |
4 | 7 | jobs:
|
5 |
| - fluent_xenial: |
6 |
| - container: |
7 |
| - image: vapor/swift:5.2-xenial |
| 8 | + linux: |
8 | 9 | runs-on: ubuntu-latest
|
| 10 | + strategy: |
| 11 | + fail-fast: false |
| 12 | + matrix: |
| 13 | + image: |
| 14 | + - swift:5.2-xenial |
| 15 | + - swift:5.2-bionic |
| 16 | + - swiftlang/swift:nightly-5.2-xenial |
| 17 | + - swiftlang/swift:nightly-5.2-bionic |
| 18 | + - swiftlang/swift:nightly-5.3-xenial |
| 19 | + - swiftlang/swift:nightly-5.3-bionic |
| 20 | + - swiftlang/swift:nightly-master-xenial |
| 21 | + - swiftlang/swift:nightly-master-bionic |
| 22 | + - swiftlang/swift:nightly-master-focal |
| 23 | + - swiftlang/swift:nightly-master-centos8 |
| 24 | + - swiftlang/swift:nightly-master-amazonlinux2 |
| 25 | + container: ${{ matrix.image }} |
| 26 | + env: |
| 27 | + LOG_LEVEL: info |
| 28 | + steps: |
| 29 | + - name: Checkout Fluent |
| 30 | + uses: actions/checkout@v2 |
| 31 | + - name: Run base tests with Thread Sanitizer |
| 32 | + run: swift test --enable-test-discovery --sanitize=thread |
| 33 | + macOS: |
| 34 | + env: |
| 35 | + LOG_LEVEL: info |
| 36 | + runs-on: macos-latest |
9 | 37 | steps:
|
10 |
| - - uses: actions/checkout@v1 |
11 |
| - - run: swift test --enable-test-discovery --sanitize=thread |
12 |
| - fluent_bionic: |
13 |
| - container: |
14 |
| - image: vapor/swift:5.2-bionic |
15 |
| - runs-on: ubuntu-latest |
16 |
| - steps: |
17 |
| - - uses: actions/checkout@v1 |
18 |
| - - run: swift test --enable-test-discovery --sanitize=thread |
| 38 | + - name: Select latest available Xcode |
| 39 | + uses: maxim-lobanov/[email protected] |
| 40 | + with: |
| 41 | + xcode-version: latest |
| 42 | + - name: Checkout Fluent |
| 43 | + uses: actions/checkout@v2 |
| 44 | + - name: Run base Fluent tests with Thread Sanitizer |
| 45 | + run: swift test --enable-test-discovery --sanitize=thread |
0 commit comments