Skip to content

Commit c7cf8ed

Browse files
authored
Update swift.yml
1 parent 9d744c6 commit c7cf8ed

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/swift.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,28 @@
44
name: SwiftUI-WorkoutApp CI
55

66
on:
7+
push:
8+
branches: [ "main", "develop" ]
79
pull_request:
8-
branches: [main, develop]
10+
branches: [ "main", "develop" ]
911

1012
jobs:
1113
test:
1214
runs-on: macos-latest
13-
timeout-minutes: 1
1415

1516
steps:
1617
- uses: actions/checkout@v4
1718

18-
- name: Xcode Version
19-
run: xcodebuild -version
20-
21-
- name: Run Unit Tests
19+
- name: Build and Test
2220
run: |
21+
xcodebuild build \
22+
-scheme "SwiftUI-WorkoutApp" \
23+
-destination "platform=iOS Simulator,OS=latest" \
24+
CODE_SIGNING_ALLOWED=NO
25+
26+
# Запуск тестов с тест-планом
2327
xcodebuild test \
24-
-scheme SwiftUI-WorkoutApp \
25-
-destination 'platform=iOS Simulator,OS=latest' \
28+
-scheme "SwiftUI-WorkoutApp" \
29+
-testPlan "SwiftUI-WorkoutApp" \
30+
-destination "platform=iOS Simulator,OS=latest" \
2631
CODE_SIGNING_ALLOWED=NO

0 commit comments

Comments
 (0)