remove pods ref in unneeded targets #3648
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SmartDeviceLink Tests | |
# This workflow is triggered on a push or pull request. | |
on: [push, pull_request, workflow_dispatch] | |
env: | |
PROJECT: 'SmartDeviceLink-iOS.xcodeproj' | |
PROJECT_UT: 'SmartDeviceLink-iOS.xcworkspace' | |
DESTINATION: 'platform=iOS Simulator,name=iPhone 14,OS=16.2' | |
jobs: | |
build: | |
name: Build Example Apps | |
runs-on: macOS-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
scheme: ['SmartDeviceLink-Example-ObjC', 'SmartDeviceLink-Example-Swift'] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2.3.1 | |
with: | |
submodules: true | |
# Print the available Xcode versions | |
- name: Get available Xcode versions on the server | |
run: ls /Applications | grep Xcode | |
- name: Build | |
run: set -o pipefail && xcodebuild -scheme "${{ matrix.scheme }}" -destination "$DESTINATION" build | |
test: | |
name: SmartDeviceLinkTests | |
runs-on: macOS-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
scheme: ['SmartDeviceLink'] | |
steps: | |
# Print the available Xcode versions | |
- name: Get available Xcode versions on the server | |
run: ls /Applications | grep Xcode | |
- name: Checkout repository | |
uses: actions/checkout@v2.3.1 | |
with: | |
submodules: true | |
- name: Install Cocoapods | |
run: sudo gem install cocoapods | |
- name: Installing dependencies | |
run: pod install | |
# 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 -workspace "$PROJECT_UT" -destination "$DESTINATION" -scheme "${{ matrix.scheme }}" | |
- name: Running unit tests | |
run: set -o pipefail && xcodebuild test-without-building -workspace "$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 | |
uses: codecov/codecov-action@v1.0.10 | |
rpcTest: | |
name: RPC Generator Tests | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2.3.1 | |
with: | |
submodules: true | |
- name: Install dependencies | |
run: python3 -m pip install -r generator/requirements.txt | |
- name: Run RPC generator tests | |
run: python3 generator/test/runner.py |