Skip to content

Commit bbd5a1b

Browse files
authored
fix(CI): move to Xcode 12 and use explicit iOS 14.0 version (#320)
* fix(CI): move to Xcode 12 and use explicit iOS 14.0 version * Also use Xcode to build and test Libraries such as Backend or UI as they need WidgetKit to be builded and tested now * build(Scheme): add UITests Target to test UI
1 parent e2dc77d commit bbd5a1b

2 files changed

Lines changed: 17 additions & 7 deletions

File tree

.github/workflows/xcodebuild.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@ jobs:
88

99
steps:
1010
- uses: actions/checkout@v2
11-
11+
1212
- name: Select Xcode
13-
run: sudo xcode-select -switch /Applications/Xcode_12_beta.app
13+
run: sudo xcode-select -switch /Applications/Xcode_12.app
1414

1515
- name: Xcode version
1616
run: /usr/bin/xcodebuild -version
1717

1818
- name: Xcode test backend
1919
run: |
20-
cd ACHNBrowserUI/Packages/Backend/
21-
swift test
20+
cd ACHNBrowserUI/
21+
xcodebuild clean test -scheme Backend -destination 'platform=iOS Simulator,name=iPhone 11,OS=14.0'
2222
2323
- name: Xcode test UI
2424
run: |
25-
cd ACHNBrowserUI/Packages/UI/
26-
swift test
25+
cd ACHNBrowserUI/
26+
xcodebuild clean test -scheme UI -destination 'platform=iOS Simulator,name=iPhone 11,OS=14.0'
2727
2828
- name: Xcode build iOS App
2929
run: |
3030
cd ACHNBrowserUI/
31-
xcodebuild clean build -scheme ACHNBrowserUI -destination 'platform=iOS Simulator,name=iPhone 11,OS=14'
31+
xcodebuild clean build -scheme ACHNBrowserUI -destination 'platform=iOS Simulator,name=iPhone 11,OS=14.0'

ACHNBrowserUI/Packages/UI/.swiftpm/xcode/xcshareddata/xcschemes/UI.xcscheme

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
3030
<Testables>
31+
<TestableReference
32+
skipped = "NO">
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "UITests"
36+
BuildableName = "UITests"
37+
BlueprintName = "UITests"
38+
ReferencedContainer = "container:">
39+
</BuildableReference>
40+
</TestableReference>
3141
</Testables>
3242
</TestAction>
3343
<LaunchAction

0 commit comments

Comments
 (0)