Рефактор (#281) #39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Воркфлоу для запуска unit-тестов | |
| # Документация тут: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift | |
| name: Unit-tests | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| test: | |
| runs-on: macos-15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Select Xcode 16.2 | |
| run: | | |
| sudo xcode-select -s /Applications/Xcode_16.2.app | |
| xcodebuild -version | |
| - name: List Available Simulators | |
| run: xcrun simctl list devices | |
| - name: Run Tests | |
| run: | | |
| xcodebuild test \ | |
| -scheme "SwiftUI-WorkoutApp" \ | |
| -testPlan "SwiftUI-WorkoutApp" \ | |
| -destination "platform=iOS Simulator,name=iPhone 16 Pro,OS=18.2" \ | |
| CODE_SIGNING_ALLOWED=NO |