File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-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+ # GitHub Actions workflow for building a Swift project
5+ name : Swift CI
6+
7+ on :
8+ push :
9+ branches : [ "main" ]
10+ pull_request :
11+ branches : [ "main" ]
12+
13+ jobs :
14+ build :
15+ runs-on : macos-latest
16+
17+ steps :
18+ # Step 1: Checkout the code
19+ - uses : actions/checkout@v4
20+
21+ # Step 2: Set up Xcode
22+ - name : Set up Xcode
23+ uses : maxim-lobanov/setup-xcode@v1
24+ with :
25+ xcode-version : ' 15.0.1'
26+
27+ # Step 3: Build the Xcode project
28+ - name : Build Xcode project
29+ run : |
30+ xcodebuild -project "AppUnitTest.xcodeproj" \
31+ -scheme "AppUnitTest" \
32+ -destination 'platform=iOS Simulator,name=iPhone 15' \
33+ CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGN_ENTITLEMENTS=""
34+
35+ # Step 4: Run tests
36+ - name : Run tests
37+ run : |
38+ xcodebuild test -project "AppUnitTest.xcodeproj" \
39+ -scheme "AppUnitTest" \
40+ -destination 'platform=iOS Simulator,name=iPhone 15' \
41+ CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGN_ENTITLEMENTS=""
You can’t perform that action at this time.
0 commit comments