Skip to content

Commit 9d744c6

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

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

.github/workflows/swift.yml

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

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

1210
jobs:
13-
build-and-test:
11+
test:
1412
runs-on: macos-latest
13+
timeout-minutes: 1
1514

1615
steps:
1716
- uses: actions/checkout@v4
18-
19-
- name: Select Latest Xcode
20-
run: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
2117

22-
- name: Build Project
23-
run: |
24-
xcodebuild build \
25-
-scheme SwiftUI-WorkoutApp \
26-
-destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=latest' \
27-
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
18+
- name: Xcode Version
19+
run: xcodebuild -version
2820

29-
- name: Run Unit Tests with Test Plan
21+
- name: Run Unit Tests
3022
run: |
3123
xcodebuild test \
3224
-scheme SwiftUI-WorkoutApp \
33-
-testPlan "SwiftUI-WorkoutApp" \
34-
-destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=latest' \
35-
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
25+
-destination 'platform=iOS Simulator,OS=latest' \
26+
CODE_SIGNING_ALLOWED=NO

0 commit comments

Comments
 (0)