From df3beb90f5810c53c219a6dffa9b783aa53ee1d7 Mon Sep 17 00:00:00 2001 From: Anton Palgunov Date: Mon, 10 Feb 2020 21:22:13 +0000 Subject: [PATCH] gem install xcpretty --- .github/workflows/build-test.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 13cc324..1bcdae1 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -9,11 +9,19 @@ jobs: steps: - uses: actions/checkout@v1 + - name: Set up Ruby 2.6 + uses: actions/setup-ruby@v1 + with: + ruby-version: 2.6 + + - name: install xcpretty + run: gem install xcpretty + - name: Force Xcode 11 run: sudo xcode-select -switch /Applications/Xcode_11.3.app - name: Run tests - run: xcodebuild test -project MTMR.xcodeproj -scheme 'UnitTests' + run: xcodebuild test -project MTMR.xcodeproj -scheme 'UnitTests' | xcpretty -c && exit ${PIPESTATUS[0]} - name: Build Archive run: xcodebuild archive -project "MTMR.xcodeproj" -scheme "MTMR" -archivePath Release/App.xcarchive