summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicoleYarroch <nicole@livio.io>2020-06-01 16:34:18 -0400
committerNicoleYarroch <nicole@livio.io>2020-06-01 16:34:18 -0400
commitbf21e8fa5a4baa53d90e68995a157680776742fd (patch)
tree7070df9bd07880db2061a046109f0d76a337e387
parent4590abd13348809232aae7539cf7039c5bb1be5d (diff)
downloadsdl_ios-feature/github_actions_CI.tar.gz
Fixed comments and xcpretty flagsfeature/github_actions_CI
Signed-off-by: NicoleYarroch <nicole@livio.io>
-rw-r--r--.github/workflows/test.yml9
1 files changed, 4 insertions, 5 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index c9d568c21..2cd85dc11 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -1,5 +1,5 @@
name: SmartDeviceLink Unit Tests
-# https://github.com/ngeri/actions-ios/blob/master/.github/workflows/feature_pipeline.yml
+
# This workflow is triggered on a push or pull request.
on: [push, pull_request]
@@ -31,12 +31,12 @@ jobs:
- name: Build
run: |
- set -o pipefail && xcodebuild clean -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" build-for-testing | xcpretty --color --tap
+ set -o pipefail && xcodebuild clean -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" build-for-testing | xcpretty --color --simple
test:
name: SmartDeviceLinkTests
runs-on: macOS-latest
-
+
strategy:
fail-fast: false
matrix:
@@ -68,7 +68,7 @@ jobs:
- name: Get available Xcode versions on the server
run: ls /Applications | grep Xcode
- # Select the Xcode version
+ # Select the Xcode version (the platform/simulator/OS available for testing depend on the Xcode version)
- name: Select Xcode version
run: sudo xcode-select -switch /Applications/Xcode_11.5.app
@@ -77,7 +77,6 @@ jobs:
run: xcodebuild build-for-testing -project "${{ matrix.project }}" -destination "${{ matrix.destination }}" -scheme "${{ matrix.scheme }}"
- name: Running tests
- # The egrep command reduces the amount of logs by only printing the errors and warnings without all the successful compiler commands `egrep '^(/.+:[0-9+:[0-9]+:.(error|warning):|fatal|===)' -`
run: |
mkdir -p ${{ github.workspace }}/artifact
set -o pipefail && xcodebuild test-without-building -project "${{ matrix.project }}" -destination "${{ matrix.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 test | xcpretty --color --simple