Skip to content

Commit

Permalink
update pods scope + test.yml
Browse files Browse the repository at this point in the history
removed pods installations from all targets but the testing one
  • Loading branch information
FrankElias77 committed Jun 16, 2023
1 parent 9e0a824 commit 0e4b612
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 176 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Expand Up @@ -4,7 +4,8 @@ name: SmartDeviceLink Tests
on: [push, pull_request, workflow_dispatch]

env:
PROJECT: 'SmartDeviceLink-iOS.xcworkspace'
PROJECT: 'SmartDeviceLink-iOS.xcodeproj'
PROJECT_UT: 'SmartDeviceLink-iOS.xcworkspace'
DESTINATION: 'platform=iOS Simulator,name=iPhone 14,OS=16.2'

jobs:
Expand Down Expand Up @@ -53,10 +54,10 @@ jobs:

# Split build into build-only and test-only as it is faster than building and running in one step
- name: Building unit tests
run: xcodebuild build-for-testing -project "$PROJECT" -destination "$DESTINATION" -scheme "${{ matrix.scheme }}"
run: xcodebuild build-for-testing -project "$PROJECT_UT" -destination "$DESTINATION" -scheme "${{ matrix.scheme }}"

- name: Running unit tests
run: set -o pipefail && xcodebuild test-without-building -project "$PROJECT" -destination "$DESTINATION" -scheme "${{ matrix.scheme }}" -configuration Debug ONLY_ACTIVE_ARCH=NO RUN_CLANG_STATIC_ANALYZER=NO GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES ENABLE_TESTABILITY=YES
run: set -o pipefail && xcodebuild test-without-building -project "$PROJECT_UT" -destination "$DESTINATION" -scheme "${{ matrix.scheme }}" -configuration Debug ONLY_ACTIVE_ARCH=NO RUN_CLANG_STATIC_ANALYZER=NO GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES ENABLE_TESTABILITY=YES

# Upload coverage reports to Codecov
- name: Upload coverage to Codecov
Expand Down
65 changes: 33 additions & 32 deletions Podfile
@@ -1,41 +1,42 @@
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'SmartDeviceLink' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

# Pods for SmartDeviceLink

#target 'SmartDeviceLink' do
# # Comment the next line if you don't want to use dynamic frameworks
# use_frameworks!
#
# # Pods for SmartDeviceLink
#
target 'SmartDeviceLinkTests' do
use_frameworks!
# Pods for testing
pod 'Quick', '5.0.1'
pod 'Nimble', '10.0.0'
pod 'OCMock', '3.9.1'
end

end

target 'SmartDeviceLink-Example-ObjC' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

# Pods for SmartDeviceLink-Example-ObjC

end

target 'SmartDeviceLink-Example-Swift' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

# Pods for SmartDeviceLink-Example-Swift

end

target 'SmartDeviceLinkSwift' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

# Pods for SmartDeviceLinkSwift

end
#
#end
#
#target 'SmartDeviceLink-Example-ObjC' do
# # Comment the next line if you don't want to use dynamic frameworks
# use_frameworks!
#
# # Pods for SmartDeviceLink-Example-ObjC
#
#end
#
#target 'SmartDeviceLink-Example-Swift' do
# # Comment the next line if you don't want to use dynamic frameworks
# use_frameworks!
#
# # Pods for SmartDeviceLink-Example-Swift
#
#end
#
#target 'SmartDeviceLinkSwift' do
# # Comment the next line if you don't want to use dynamic frameworks
# use_frameworks!
#
# # Pods for SmartDeviceLinkSwift
#
#end
2 changes: 1 addition & 1 deletion Podfile.lock
Expand Up @@ -19,6 +19,6 @@ SPEC CHECKSUMS:
OCMock: 9491e4bec59e0b267d52a9184ff5605995e74be8
Quick: 749aa754fd1e7d984f2000fe051e18a3a9809179

PODFILE CHECKSUM: 690eb0bbc11e06a1190e9882a20851c6d5797e8e
PODFILE CHECKSUM: baffe692a0115b236a8ddcfb5d1f1941964b772e

COCOAPODS: 1.12.1

0 comments on commit 0e4b612

Please sign in to comment.