-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the Codable conformances on Expandable to be compliant (fixes sev…
…eral issues), fix the KeyedDecodingContainer override to specifically handle Expandable (fixes the missing "transfer" key issue), make the test show errors better. Oh, and some much better CI.
- Loading branch information
Showing
3 changed files
with
95 additions
and
54 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,54 @@ | ||
name: 'Test' | ||
|
||
on: | ||
push: { branches: [ main ] } | ||
pull_request: | ||
types: [opened] | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
test: | ||
name: Running Tests | ||
linux: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
swiftver: | ||
- 'swift:5.2' | ||
- 'swift:5.3' | ||
- 'swift:5.4' | ||
- 'swift:5.5' | ||
- 'swiftlang/swift:nightly-main' | ||
swiftos: | ||
- bionic | ||
- focal | ||
- centos7 | ||
- centos8 | ||
- amazonlinux2 | ||
container: ${{ format('{0}-{1}', matrix.swiftver, matrix.swiftos) }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: 'Checking out repo' | ||
uses: actions/checkout@v2 | ||
|
||
- name: 'Running Tests' | ||
run: swift test --enable-test-discovery | ||
|
||
- name: Workaround SPM incompatibility with old Git on CentOS 7 | ||
if: ${{ contains(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: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Run tests with Thread Sanitizer | ||
run: swift test --enable-test-discovery --sanitize=thread | ||
|
||
macos: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
xcode: | ||
- latest-stable | ||
- latest | ||
runs-on: macos-latest | ||
steps: | ||
- name: Select latest available Xcode | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: ${{ matrix.xcode }} | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Run tests with Thread Sanitizer | ||
run: swift test --enable-test-discovery --sanitize=thread |
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
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