Merge pull request #96 from wibed/fix_typo #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
macos: | |
strategy: | |
fail-fast: false | |
matrix: | |
xcode: [latest, latest-stable] | |
runs-on: macos-latest | |
steps: | |
- name: Select latest available Xcode | |
uses: maxim-lobanov/[email protected] | |
with: { 'xcode-version': '${{ matrix.xcode }}' } | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Run tests with Thread Sanitizer | |
run: swift test --enable-test-discovery --sanitize=thread | |
linux: | |
strategy: | |
fail-fast: false | |
matrix: | |
swiftver: | |
- swift:5.2 | |
- swift:5.3 | |
swiftos: | |
- xenial | |
- bionic | |
- focal | |
- centos7 | |
- centos8 | |
- amazonlinux2 | |
container: ${{ format('{0}-{1}', matrix.swiftver, matrix.swiftos) }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: SPM is incompatible with CentOS 7 | |
if: ${{ matrix.swiftos == 'centos7' }} | |
run: | | |
yum install -y make libcurl-devel | |
git clone https://github.com/git/git -bv2.28.0 --depth 1 && cd git | |
make prefix=/usr -j all install NO_OPENSSL=1 NO_EXPAT=1 NO_TCLTK=1 NO_GETTEXT=1 NO_PERL=1 | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Run tests with Thread Sanitizer | |
run: swift test --enable-test-discovery --sanitize=thread |