File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ # Воркфлоу для запуска unit-тестов
2+ # Документация тут: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
3+
4+ name : Unit-tests
5+
6+ on :
7+ push :
8+ branches : [ "main" ]
9+ pull_request :
10+ branches : [ "main" ]
11+
12+ jobs :
13+ test :
14+ runs-on : macos-15
15+
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - name : Select Xcode 16.2
20+ run : |
21+ sudo xcode-select -s /Applications/Xcode_16.2.app
22+ xcodebuild -version
23+
24+ - name : List Available Simulators
25+ run : xcrun simctl list devices
26+
27+ - name : Run Tests
28+ run : |
29+ xcodebuild test \
30+ -scheme "Shared SwiftUI Content" \
31+ -testPlan "TestPlan" \
32+ -destination "platform=iOS Simulator,name=iPhone 16 Pro,OS=18.2" \
33+ CODE_SIGNING_ALLOWED=NO
You can’t perform that action at this time.
0 commit comments