Skip to content

Upgrade everything to Swift 5.9 and Sendable correctness, use SwiftHTTPTypes #94

Upgrade everything to Swift 5.9 and Sendable correctness, use SwiftHTTPTypes

Upgrade everything to Swift 5.9 and Sendable correctness, use SwiftHTTPTypes #94

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
jobs:
appleos:
strategy:
fail-fast: false
matrix:
xcode:
- latest
- latest-stable
destination:
- 'platform=macOS,arch=x86_64'
#- 'platform=macOS,arch=arm64'
- 'platform=iOS Simulator,OS=latest,name=iPhone 11 Pro'
- 'platform=tvOS Simulator,OS=latest,name=Apple TV 4K'
- 'platform=watchOS Simulator,OS=latest,name=Apple Watch Series 6 - 44mm'
runs-on: macos-11.0
steps:
- name: Select latest available Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}
- name: Checkout
uses: actions/checkout@v2
- name: Run tests for ${{ matrix.destination }}
run: xcodebuild test -scheme StructuredAPIClient-Package -enableThreadSanitizer YES -destination '${{ matrix.destination }}'
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ver:
- swift:5.3
- swift:5.4
- swift:5.5
- swiftlang/swift:nightly-main
os:
- bionic
- focal
- amazonlinux2
container:
image: ${{ matrix.ver }}-${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run tests for ${{ matrix.runner }}
run: swift test --enable-test-discovery --sanitize=thread
windows:
runs-on: windows-latest
steps:
- name: Install Swift toolchain
uses: compnerd/gha-setup-swift@main
with:
branch: swift-5.5-release
tag: 5.5-RELEASE
- name: Checkout
uses: actions/checkout@v2
- name: Run tests
run: swift test