Skip to content

Commit 69c352c

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/main'
2 parents 463b306 + ca9d488 commit 69c352c

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.github/workflows/lint.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ concurrency:
99

1010
jobs:
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

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

Tests/ContactStoreTests/TestHelpers/MockContactStore.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)