Skip to content

Commit c6bdd8b

Browse files
authored
Create swift.yml
1 parent 21ce21c commit c6bdd8b

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/swift.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

0 commit comments

Comments
 (0)