Skip to content

Commit 13597a6

Browse files
authored
Merge pull request #245 from nnsnodnb/fix-ci
Update CI
2 parents 90259f7 + 28710d6 commit 13597a6

File tree

15 files changed

+370
-305
lines changed

15 files changed

+370
-305
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,26 @@ name: CI
22
on: [push, pull_request]
33
jobs:
44
xcode:
5-
runs-on: macos-10.15
6-
strategy:
7-
matrix:
8-
swift: [5.0, 4.2]
9-
fail-fast: false
10-
name: Action Tests (Swift ${{ matrix.swift }})
5+
runs-on: macos-13
6+
name: Action Tests (Swift 5.0)
117
env:
12-
DEVELOPER_DIR: /Applications/Xcode_11.7.app/Contents/Developer
8+
DEVELOPER_DIR: /Applications/Xcode_15.0.app/Contents/Developer
139
steps:
14-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1511
- name: Cache Carthage
16-
uses: actions/cache@v2
12+
uses: actions/cache@v3
1713
with:
1814
path: Carthage
1915
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }}
2016
restore-keys: |
2117
${{ runner.os }}-carthage-
2218
- name: Bootstrap Carthage
23-
run: carthage bootstrap --no-use-binaries --cache-builds
19+
run: carthage bootstrap --no-use-binaries --use-xcframeworks --cache-builds
2420
- name: Tests
2521
run: |
26-
set -o pipefail && xcodebuild test SWIFT_VERSION=${{ matrix.swift }} -workspace Action.xcworkspace -scheme Action -destination "platform=iOS Simulator,name=iPhone 11" | xcpretty -c --test
27-
set -o pipefail && xcodebuild test SWIFT_VERSION=${{ matrix.swift }} -workspace Action.xcworkspace -scheme Action-macOS -destination "arch=x86_64" | xcpretty -c --test
22+
set -o pipefail && xcodebuild test clean SWIFT_VERSION=5.0 -workspace Action.xcworkspace -scheme Action -destination "platform=iOS Simulator,name=iPhone 14" | xcpretty -c --test
23+
set -o pipefail && xcodebuild test clean SWIFT_VERSION=5.0 -workspace Action.xcworkspace -scheme Action-macOS -destination "arch=x86_64" | xcpretty -c --test
2824
- name: Builds
2925
run: |
30-
set -o pipefail && xcodebuild build SWIFT_VERSION=${{ matrix.swift }} -workspace Action.xcworkspace -scheme Action-watchOS -destination "platform=watchOS Simulator,name=Apple Watch Series 5 - 44mm" | xcpretty -c
31-
set -o pipefail && xcodebuild build SWIFT_VERSION=${{ matrix.swift }} -workspace Action.xcworkspace -scheme Action-tvOS -destination "platform=tvOS Simulator,name=Apple TV 4K (at 1080p)" | xcpretty -c
26+
set -o pipefail && xcodebuild build clean SWIFT_VERSION=5.0 -workspace Action.xcworkspace -scheme Action-watchOS -destination "platform=watchOS Simulator,name=Apple Watch Series 5 (44mm)" | xcpretty -c
27+
set -o pipefail && xcodebuild build clean SWIFT_VERSION=5.0 -workspace Action.xcworkspace -scheme Action-tvOS -destination "platform=tvOS Simulator,name=Apple TV 4K (3rd generation) (at 1080p)" | xcpretty -c

Action.xcodeproj/project.pbxproj

Lines changed: 187 additions & 161 deletions
Large diffs are not rendered by default.

Action.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cartfile.private

Lines changed: 0 additions & 2 deletions
This file was deleted.

Cartfile.resolved

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
github "Quick/Nimble" "v9.0.0"
2-
github "Quick/Quick" "v3.1.2"
3-
github "ReactiveX/RxSwift" "6.1.0"
1+
github "ReactiveX/RxSwift" "6.6.0"

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tests/ActionTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import RxTest
55
@testable import Action
66

77
class ActionTests: QuickSpec {
8-
override func spec() {
8+
override class func spec() {
99
var scheduler: TestScheduler!
1010
var disposeBag: DisposeBag!
1111

Tests/Nimble+RxTest+Ext.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ extension PredicateResult {
3838
}
3939
}
4040

41-
public func match<T>(_ expected: T) -> Predicate<T> where T: Equatable {
41+
public func match<T>(_ expected: T) -> Nimble.Predicate<T> where T: Equatable {
4242
return Predicate { events in
4343

4444
guard let source = try events.evaluate() else {
@@ -54,7 +54,7 @@ public func match<T>(_ expected: T) -> Predicate<T> where T: Equatable {
5454
}
5555
}
5656

57-
public func match<T>(_ expected: [Recorded<Event<T>>]) -> Predicate<[Recorded<Event<T>>]> where T: Equatable {
57+
public func match<T>(_ expected: [Recorded<Event<T>>]) -> Nimble.Predicate<[Recorded<Event<T>>]> where T: Equatable {
5858
return Predicate { events in
5959

6060
guard let source = try events.evaluate() else {
@@ -78,7 +78,7 @@ public func match<T>(_ expected: [Recorded<Event<T>>]) -> Predicate<[Recorded<Ev
7878
}
7979
}
8080

81-
public func match<T, E: Error>(with expectedErrors: [Recorded<Event<E>>]) -> Predicate<[Recorded<Event<T>>]> where E: Equatable {
81+
public func match<T, E: Error>(with expectedErrors: [Recorded<Event<E>>]) -> Nimble.Predicate<[Recorded<Event<T>>]> where E: Equatable {
8282
return Predicate { events in
8383
guard let source = try events.evaluate() else {
8484
return PredicateResult.evaluationFailed

Tests/iOS-Tests/AlertActionTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import Quick
22
import Nimble
33
import RxSwift
4+
import UIKit
45
import Action
56

67
class AlertActionTests: QuickSpec {
7-
override func spec() {
8+
override class func spec() {
89
it("is nil by default") {
910
let subject = UIAlertAction.Action("Hi", style: .default)
1011
expect(subject.rx.action).to(beNil())

Tests/iOS-Tests/BarButtonTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import Quick
22
import Nimble
33
import RxSwift
4+
import UIKit
45
import Action
56

67
class BarButtonTests: QuickSpec {
7-
override func spec() {
8+
override class func spec() {
89

910
it("is nil by default") {
1011
let subject = UIBarButtonItem(barButtonSystemItem: .save, target: nil, action: nil)

0 commit comments

Comments
 (0)