File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will build a Swift project
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
3+
4+ name : SwiftUI-WorkoutApp CI
5+
6+ on :
7+ push :
8+ branches : [ "main", "develop" ]
9+ pull_request :
10+ branches : [ "main", "develop" ]
11+
12+ jobs :
13+ build-and-test :
14+ runs-on : macos-latest
15+
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - name : Select Latest Xcode
20+ run : sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
21+
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
28+
29+ - name : Run Unit Tests with Test Plan
30+ run : |
31+ xcodebuild test \
32+ -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
You can’t perform that action at this time.
0 commit comments