Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ns-vasilev committed Dec 29, 2023
1 parent 69923de commit 27dbbba
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 30 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}.app/Contents/Developer"
timeout-minutes: 10
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}.app/Contents/Developer"
timeout-minutes: 10
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
Expand All @@ -79,10 +79,10 @@ jobs:
name: "iOS 16.4"
xcode: "Xcode_14.3.1"
runsOn: macos-13
- destination: "OS=15.5,name=iPhone 13 Pro"
name: "iOS 15.5"
xcode: "Xcode_13.4.1"
runsOn: macOS-12
# - destination: "OS=15.5,name=iPhone 13 Pro"
# name: "iOS 15.5"
# xcode: "Xcode_13.4.1"
# runsOn: macOS-12
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
Expand All @@ -103,7 +103,7 @@ jobs:
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}.app/Contents/Developer"
timeout-minutes: 10
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
Expand All @@ -116,10 +116,10 @@ jobs:
name: "tvOS 16.4"
xcode: "Xcode_14.3.1"
runsOn: macos-13
- destination: "OS=15.4,name=Apple TV"
name: "tvOS 15.4"
xcode: "Xcode_13.4.1"
runsOn: macos-12
# - destination: "OS=15.4,name=Apple TV"
# name: "tvOS 15.4"
# xcode: "Xcode_13.4.1"
# runsOn: macos-12
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
Expand All @@ -135,20 +135,20 @@ jobs:
xcode: true
xcode_archive_path: "./appletvsimulator.xcresult"

Beta:
name: ${{ matrix.name }}
runs-on: macos-13
env:
DEVELOPER_DIR: "/Applications/Xcode_15.0.app/Contents/Developer"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- destination: "OS=1.0,name=Apple Vision Pro"
name: "visionOS 1.0"
scheme: "Flare"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }}
run: xcodebuild test -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" clean || exit 1
# Beta:
# name: ${{ matrix.name }}
# runs-on: macos-13
# env:
# DEVELOPER_DIR: "/Applications/Xcode_15.0.app/Contents/Developer"
# timeout-minutes: 10
# strategy:
# fail-fast: false
# matrix:
# include:
# - destination: "OS=1.0,name=Apple Vision Pro"
# name: "visionOS 1.0"
# scheme: "Flare"
# steps:
# - uses: actions/checkout@v3
# - name: ${{ matrix.name }}
# run: xcodebuild test -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" clean || exit 1
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ final class PurchaseProviderStoreKit2Tests: StoreSessionTestCase {
}
}

wait(for: [expectation], timeout: .second)
#if swift(>=5.9)
await fulfillment(of: [expectation])
#else
wait(for: [expectation], timeout: .second)
#endif
}

func test_thatPurchaseProviderReturnsPaymentTransaction_whenSK2ProductExist() async throws {
Expand All @@ -66,7 +70,11 @@ final class PurchaseProviderStoreKit2Tests: StoreSessionTestCase {
}
}

wait(for: [expectation], timeout: .second)
#if swift(>=5.9)
await fulfillment(of: [expectation])
#else
wait(for: [expectation], timeout: .second)
#endif
}
}

Expand Down

0 comments on commit 27dbbba

Please sign in to comment.