Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New works-for-everything CI #2365

Merged
merged 2 commits into from
May 26, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
64 changes: 44 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,49 @@
name: test
name: Test Matrix

on:
- pull_request
pull_request:
push:
branches:
- master

jobs:
vapor_macos:
runs-on: macos-latest
env:
DEVELOPER_DIR: /Applications/Xcode_11.4.1.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- run: xcrun swift test --enable-test-discovery --sanitize=thread
vapor_xenial:
container:
image: vapor/swift:5.2-xenial

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:
- uses: actions/checkout@v2
- run: swift test --enable-test-discovery --sanitize=thread
vapor_bionic:
container:
image: vapor/swift:5.2-bionic
runs-on: ubuntu-latest
- 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:
- uses: actions/checkout@v2
- run: swift test --enable-test-discovery --sanitize=thread
- 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