File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed
Tests/ContactStoreTests/TestHelpers Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,10 @@ concurrency:
99
1010jobs :
1111 SwiftLint :
12- runs-on : macos-latest
12+ runs-on : macOS-13
1313 steps :
14- - uses : actions/checkout@v1
15-
16- - name : Lint code using SwiftLint
17- run : swiftlint lint --reporter github-actions-logging
14+ - uses : actions/checkout@v4
15+ - name : Switch Xcode 🔄
16+ run : sudo xcode-select --switch /Applications/Xcode_15.0.app
17+ - name : Swift Lint
18+ run : swiftlint --strict
Original file line number Diff line number Diff line change @@ -21,13 +21,13 @@ jobs:
2121 - name : Swift Lint
2222 run : swiftlint --strict
2323 - name : Test iOS
24- run : xcodebuild test -scheme fs-contact-store -destination "platform=iOS Simulator,name=iPhone 15" -enableCodeCoverage YES
24+ run : xcodebuild test -scheme fs-contact-store -destination "platform=iOS Simulator,name=iPhone 15" -enableCodeCoverage YES -skipPackagePluginValidation
2525 - name : Fetch Coverage
2626 uses : sersoft-gmbh/swift-coverage-action@v4
2727 id : coverage-files
2828 - name : Publish Coverage to Codecov
29- uses : codecov/codecov-action@v3
29+ uses : codecov/codecov-action@v4.0.1
3030 with :
31- files : ${{ join(fromJSON(steps.coverage-files.outputs.files), ',') }}
31+ token : ${{ secrets.CODECOV_TOKEN }}
3232 - name : Test macOS
3333 run : xcodebuild test -scheme fs-contact-store -destination "platform=macOS" -enableCodeCoverage YES
Original file line number Diff line number Diff line change @@ -87,10 +87,10 @@ final class MockContactStore: CNContactStore {
8787 if let contact = request. addedContact {
8888 contacts. append ( contact)
8989 } else if let contact = request. updatedContact {
90- contacts. removeAll ( where : { $0. identifier == contact. identifier } )
90+ contacts. removeAll { $0. identifier == contact. identifier }
9191 contacts. append ( contact)
9292 } else if let contact = request. deletedContact {
93- contacts. removeAll ( where : { $0. identifier == contact. identifier } )
93+ contacts. removeAll { $0. identifier == contact. identifier }
9494 }
9595 }
9696
You can’t perform that action at this time.
0 commit comments