-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
operators: add fromAsync, fromThrowingAsync, fromAsyncSequence to bri…
…dge async/await with Combine
- Loading branch information
Thibault Wittemberg
committed
Sep 26, 2021
1 parent
fc3e405
commit c6d594e
Showing
6 changed files
with
663 additions
and
24 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 |
---|---|---|
|
@@ -5,32 +5,31 @@ on: [push, pull_request, workflow_dispatch] | |
jobs: | ||
xcode-tests: | ||
name: "Test" | ||
runs-on: macOS-latest | ||
runs-on: macOS-11 | ||
|
||
strategy: | ||
matrix: | ||
platform: [macOS, iOS, tvOS] | ||
# platform: [macOS, iOS, tvOS] | ||
platform: [iOS, tvOS] | ||
include: | ||
- platform: macOS | ||
sdk: macosx | ||
destination: "arch=x86_64" | ||
|
||
# - platform: macOS | ||
# sdk: macosx11.3 | ||
# destination: "arch=x86_64" | ||
# | ||
- platform: iOS | ||
sdk: iphonesimulator | ||
destination: "name=iPhone 11" | ||
sdk: iphoneos15.0 | ||
destination: "name=iPhone 13" | ||
|
||
- platform: tvOS | ||
sdk: appletvsimulator | ||
sdk: appletvsimulator15.0 | ||
destination: "name=Apple TV" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Select Xcode 12 (beta) | ||
run: sudo xcode-select -s /Applications/Xcode_12_beta.app | ||
- name: Generate project | ||
run: make project | ||
- name: Select Xcode 13 | ||
run: sudo xcode-select -s /Applications/Xcode_13.0.app | ||
- name: Run tests | ||
run: set -o pipefail && xcodebuild -project CombineExt.xcodeproj -scheme CombineExt-Package -enableCodeCoverage YES -sdk ${{ matrix.sdk }} -destination "${{ matrix.destination }}" test | xcpretty -c -r html --output logs/${{ matrix.platform }}.html | ||
run: set -o pipefail && xcodebuild -scheme CombineExt-Package -enableCodeCoverage YES -sdk ${{ matrix.sdk }} -destination "${{ matrix.destination }}" test | xcpretty -c -r html --output logs/${{ matrix.platform }}.html | ||
- uses: codecov/[email protected] | ||
with: | ||
token: 1519d58c-6fb9-483f-af6c-7f6f0b384345 | ||
|
@@ -39,12 +38,3 @@ jobs: | |
with: | ||
name: build-logs-${{ github.run_id }} | ||
path: logs | ||
|
||
SPM: | ||
name: "Test (SPM)" | ||
runs-on: macOS-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run tests | ||
run: set -o pipefail && swift test |
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: CombineExt | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
xcode-tests: | ||
name: "Test" | ||
runs-on: macOS-11 | ||
|
||
strategy: | ||
matrix: | ||
# platform: [macOS, iOS, tvOS] | ||
platform: [iOS, tvOS] | ||
include: | ||
# - platform: macOS | ||
# sdk: macosx11.3 | ||
# destination: "arch=x86_64" | ||
# | ||
- platform: iOS | ||
sdk: iphoneos15.0 | ||
destination: "name=iPhone 13" | ||
|
||
- platform: tvOS | ||
sdk: appletvsimulator15.0 | ||
destination: "name=Apple TV" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Select Xcode 13 | ||
run: sudo xcode-select -s /Applications/Xcode_13.0.app | ||
# - name: Generate project | ||
# run: make project | ||
- name: Run tests | ||
run: set -o pipefail && xcodebuild -scheme CombineExt -enableCodeCoverage YES -sdk ${{ matrix.sdk }} -destination "${{ matrix.destination }}" test | xcpretty -c -r html --output logs/${{ matrix.platform }}.html | ||
- uses: codecov/[email protected] | ||
with: | ||
token: 1519d58c-6fb9-483f-af6c-7f6f0b384345 | ||
name: CombineExt | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: build-logs-${{ github.run_id }} | ||
path: logs | ||
|
||
# SPM: | ||
# name: "Test (SPM)" | ||
# runs-on: macOS-11 | ||
# | ||
# steps: | ||
# - uses: fwal/setup-swift@v1 | ||
# with: | ||
# swift-version: "5.5.0" | ||
# - uses: actions/checkout@v2 | ||
# - name: Run tests | ||
# run: set -o pipefail && swift test |
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
Oops, something went wrong.