Update CI configuration with detailed build and test steps

This commit is contained in:
“SamoilenkoVadym” 2025-03-02 22:08:09 +00:00
parent 08d6dfb6fd
commit 106ca48f99

View file

@ -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