From 106ca48f9959ec990ad6b188dfcbf6d523cb5d51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CSamoilenkoVadym=E2=80=9D?= <“samoylenko.vadym@gmail.com”> Date: Sun, 2 Mar 2025 22:08:09 +0000 Subject: [PATCH] Update CI configuration with detailed build and test steps --- .github/workflows/tests.yml | 39 ++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5a0551c..831c786 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,24 +7,31 @@ on: branches: [ main ] jobs: - build: + test: name: Build and Test - runs-on: macos-13 # Используем macOS 13 (Ventura) + runs-on: macos-latest steps: - - uses: actions/checkout@v4 - - - name: Set up Xcode - uses: maxim-lobanov/setup-xcode@v1 - with: - xcode-version: '15.0' # Укажите вашу версию Xcode - - - name: Build and Test + - name: Checkout + uses: actions/checkout@v4 + + - name: Show Xcode version + run: xcodebuild -version + + - name: Show build settings + run: xcodebuild -list -project Coinly.xcodeproj + + - name: Build and test run: | - xcodebuild clean test \ + set -o pipefail && xcodebuild \ -project Coinly.xcodeproj \ - -scheme Coinly \ - -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.0' \ - CODE_SIGN_IDENTITY="" \ - CODE_SIGNING_REQUIRED=NO \ - CODE_SIGNING_ALLOWED=NO + -scheme "Coinly" \ + -destination 'platform=iOS Simulator,name=iPhone 14,OS=16.4' \ + clean test | xcpretty + + - name: Upload test results + uses: actions/upload-artifact@v4 + if: failure() + with: + name: test-logs + path: ~/Library/Developer/Xcode/DerivedData/**/Logs/Test/**/*.xcresult