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