diff --git a/.github/workflows/continous-integration.yml b/.github/workflows/continous-integration.yml new file mode 100644 index 0000000..5d904fa --- /dev/null +++ b/.github/workflows/continous-integration.yml @@ -0,0 +1,25 @@ +name: Build and Test +on: [push, pull_request] +jobs: + iOS: + name: Test iOS + runs-on: macOS-latest + timeout-minutes: 15 + steps: + - uses: actions/checkout@v2.3.2 + - uses: actions/cache@v2.1.1 + id: load-cache + with: + path: Example/Pods + key: macos-pods-${{ hashFiles('**/Podfile.lock') }} + - name: Install Cocoapods dependencies + if: steps.load-cache.outputs.cache-hit != 'true' + run: pod install --project-directory=Example + - name: All Tests + uses: sersoft-gmbh/xcodebuild-action@v1.1 + with: + workspace: Example/PerspectiveTransform.xcworkspace + scheme: Example + destination: platform=iOS Simulator,name=iPhone 11 Pro + - name: Report coverage + run: bash <(curl -s 'https://codecov.io/bash') -Z -J '^PerspectiveTransform$' -X gcov -X fix diff --git a/Example/Podfile b/Example/Podfile index 8fd76df..ccea6b5 100644 --- a/Example/Podfile +++ b/Example/Podfile @@ -33,3 +33,13 @@ target 'Framework Unit Specs' do DevelopmentPodAndDependencies() SwiftTestingPods() end + +post_install do |installer| + # Fix Xcode warning update to recommended settings caused by overriding architecture settings + # https://github.com/CocoaPods/CocoaPods/issues/8242#issuecomment-572046678 + installer.pods_project.targets.each do |target| + target.build_configurations.each do |config| + config.build_settings.delete('ARCHS') + end + end +end diff --git a/Example/Podfile.lock b/Example/Podfile.lock index ba7b4a7..64712d1 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -5,14 +5,14 @@ PODS: - iOSSnapshotTestCase/Core (6.2.0) - iOSSnapshotTestCase/SwiftSupport (6.2.0): - iOSSnapshotTestCase/Core - - Nimble (8.0.5) - - Nimble-Snapshots (8.1.1): - - Nimble-Snapshots/Core (= 8.1.1) - - Nimble-Snapshots/Core (8.1.1): + - Nimble (8.1.2) + - Nimble-Snapshots (8.2.1): + - Nimble-Snapshots/Core (= 8.2.1) + - Nimble-Snapshots/Core (8.2.1): - iOSSnapshotTestCase (~> 6.0) - Nimble (~> 8.0) - PerspectiveTransform (1.1) - - Quick (2.2.0) + - Quick (3.0.0) DEPENDENCIES: - ImageCoordinateSpace @@ -36,11 +36,11 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: ImageCoordinateSpace: 9e560a43a97375371f22343bb47e2c7e7fc428ae iOSSnapshotTestCase: 9ab44cb5aa62b84d31847f40680112e15ec579a6 - Nimble: 4ab1aeb9b45553c75b9687196b0fa0713170a332 - Nimble-Snapshots: 5058fb9b459e64371f54a0f8d9dde6f33db490a0 + Nimble: 3864815b4703c7ebffba875973c70e854489fbae + Nimble-Snapshots: 3a4750d83752625c8ebfdc588da105303ee2201e PerspectiveTransform: aad7656efae3e58b5939221e0ea859aab78319a6 - Quick: 7fb19e13be07b5dfb3b90d4f9824c855a11af40e + Quick: 6d9559f40647bc4d510103842ef2fdd882d753e2 -PODFILE CHECKSUM: 1022d64c64e11ea237eb8911f12da68da807a763 +PODFILE CHECKSUM: 0ff1a7067ec7bf8dc165215077e09fc8337682ed COCOAPODS: 1.8.4 diff --git a/PerspectiveTransform.podspec b/PerspectiveTransform.podspec index 2b549ed..4ceea98 100644 --- a/PerspectiveTransform.podspec +++ b/PerspectiveTransform.podspec @@ -22,8 +22,8 @@ Pod::Spec.new do |s| ts.requires_app_host = false ts.source_files = 'Example/Specs/**/*.{h,swift}', 'Example/Tests/*Helper.swift' ts.dependencies = { - 'Quick' => '~> 2.2', - 'Nimble' => '~> 8.0' + 'Quick' => '~> 3.0', + 'Nimble' => '~> 8.1' } end s.test_spec 'AppSpecs' do |ts| @@ -31,8 +31,8 @@ Pod::Spec.new do |s| ts.resources = 'Example/Tests/**/*.{png,jpg,svg}' ts.source_files = 'Example/Tests/**/*.{h,swift}', 'Example/PerspectiveTransform/resetAnchorPoint.swift' ts.dependencies = { - 'Quick' => '~> 2.2', - 'Nimble-Snapshots' => '~> 8.1' + 'Quick' => '~> 3.0', + 'Nimble-Snapshots' => '~> 8.2' } end end