File tree Expand file tree Collapse file tree 9 files changed +30
-54
lines changed Expand file tree Collapse file tree 9 files changed +30
-54
lines changed Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
branches : [ main ]
6
6
paths :
7
+ - ' .github/workflows/build_and_test.yml'
7
8
- ' Sources/**'
8
9
- ' !Sources/Runestone/Documentation.docc/**'
9
10
- ' Tests/**'
10
11
concurrency :
11
12
group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12
13
cancel-in-progress : true
13
14
env :
14
- DEVELOPER_DIR : /Applications/Xcode_14.3.1 .app/Contents/Developer
15
+ DEVELOPER_DIR : /Applications/Xcode_15.0 .app/Contents/Developer
15
16
jobs :
16
17
build :
17
18
name : Build and test on iPhone 14
@@ -23,10 +24,13 @@ jobs:
23
24
submodules : recursive
24
25
- name : Build
25
26
run : |
26
- xcodebuild build-for-testing -scheme Runestone -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14'
27
+ xcodebuild build-for-testing\
28
+ -scheme Runestone\
29
+ -sdk iphonesimulator\
30
+ -destination "platform=iOS Simulator,name=iPhone 14 Pro,OS=17.0"
27
31
- name : Test
28
- env :
29
- scheme : ${{ 'default' }}
30
- platform : ${{ 'iOS Simulator' }}
31
32
run : |
32
- xcodebuild test-without-building -scheme Runestone -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14'
33
+ xcodebuild test-without-building\
34
+ -scheme Runestone\
35
+ -sdk iphonesimulator\
36
+ -destination "platform=iOS Simulator,name=iPhone 14 Pro,OS=17.0"
Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
branches : [ main ]
6
6
paths :
7
+ - ' .github/workflows/build_example_project.yml'
7
8
- ' Example/**'
8
9
concurrency :
9
10
group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10
11
cancel-in-progress : true
11
12
env :
12
- DEVELOPER_DIR : /Applications/Xcode_14.3.1 .app/Contents/Developer
13
+ DEVELOPER_DIR : /Applications/Xcode_15.0 .app/Contents/Developer
13
14
jobs :
14
15
build :
15
16
name : Build example project for iPhone 14
21
22
submodules : recursive
22
23
- name : Build
23
24
run : |
24
- xcodebuild build -project Example/Example.xcodeproj -scheme Example -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14'
25
+ xcodebuild build\
26
+ -project Example/Example.xcodeproj\
27
+ -scheme Example\
28
+ -sdk iphonesimulator\
29
+ -destination "platform=iOS Simulator,name=iPhone 14 Pro,OS=17.0"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ concurrency:
8
8
group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
9
9
cancel-in-progress : true
10
10
env :
11
- DEVELOPER_DIR : /Applications/Xcode_14.3.1 .app/Contents/Developer
11
+ DEVELOPER_DIR : /Applications/Xcode_15.0 .app/Contents/Developer
12
12
jobs :
13
13
analyze :
14
14
name : Analyze
29
29
with :
30
30
languages : ${{ matrix.language }}
31
31
- name : Build
32
- run : xcodebuild -scheme Runestone -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14'
32
+ run : |
33
+ xcodebuild\
34
+ -scheme Runestone\
35
+ -sdk iphonesimulator\
36
+ -destination "platform=iOS Simulator,name=iPhone 14 Pro,OS=17.0"
33
37
- name : Perform CodeQL Analysis
34
38
uses : github/codeql-action/analyze@v2
35
39
with :
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ concurrency:
9
9
group : " pages"
10
10
cancel-in-progress : true
11
11
env :
12
- DEVELOPER_DIR : /Applications/Xcode_14.3.1 .app/Contents/Developer
12
+ DEVELOPER_DIR : /Applications/Xcode_15.0 .app/Contents/Developer
13
13
jobs :
14
14
build :
15
15
runs-on : macos-13
Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
branches : [ main ]
6
6
paths :
7
+ - ' .github/workflows/ui_tests.yml'
7
8
- ' Sources/**'
8
9
- ' !Sources/Runestone/Documentation.docc/**'
9
10
- ' UITests/HostUITests/**'
10
11
concurrency :
11
12
group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12
13
cancel-in-progress : true
13
14
env :
14
- DEVELOPER_DIR : /Applications/Xcode_14.3.1 .app/Contents/Developer
15
+ DEVELOPER_DIR : /Applications/Xcode_15.0 .app/Contents/Developer
15
16
jobs :
16
17
run_korean_tests :
17
18
name : Run Korean tests
28
29
- name : Disable "Use the Same Keyboard Language as macOS"
29
30
run : defaults write com.apple.iphonesimulator EnableKeyboardSync -bool NO
30
31
- name : Create Simulator
31
- run : xcrun simctl create "${SIMULATOR_NAME}" "iPhone 8 "
32
+ run : xcrun simctl create "${SIMULATOR_NAME}" "iPhone 13" "iOS15.5 "
32
33
- name : Find Simulator UDID
33
34
run : |
34
35
TMP_SIMULATOR_UDID=`xcrun simctl list --json devices | jq -r ".devices | flatten | .[] | select(.name == \"${SIMULATOR_NAME}\").udid"`
92
93
- name : Disable "Use the Same Keyboard Language as macOS"
93
94
run : defaults write com.apple.iphonesimulator EnableKeyboardSync -bool NO
94
95
- name : Create Simulator
95
- run : xcrun simctl create "${SIMULATOR_NAME}" "iPhone 8 "
96
+ run : xcrun simctl create "${SIMULATOR_NAME}" "iPhone 13" "iOS15.5 "
96
97
- name : Find Simulator UDID
97
98
run : |
98
99
TMP_SIMULATOR_UDID=`xcrun simctl list --json devices | jq -r ".devices | flatten | .[] | select(.name == \"${SIMULATOR_NAME}\").udid"`
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ PROJECT_PATH="${SCRIPT_PATH}/../UITests/UITests.xcodeproj"
6
6
# Disable "Use the Same Keyboard Language as macOS" in Simulator.app.
7
7
defaults write com.apple.iphonesimulator EnableKeyboardSync -bool NO
8
8
# Create the simulator we will use for the tests.
9
- xcrun simctl create " ${SIMULATOR_NAME} " " iPhone 8 " 2> /dev/null
9
+ xcrun simctl create " ${SIMULATOR_NAME} " " iPhone 13 " " iOS15.5 " 2> /dev/null
10
10
# Find the UDID of the newly created simulator.
11
11
SIMULATOR_UDID=` xcrun simctl list --json devices | jq -r " .devices | flatten | .[] | select(.name == \" ${SIMULATOR_NAME} \" ).udid" `
12
12
# Edit the simulator's .GlobalPreferences.plist to use the Chinese language.
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ PROJECT_PATH="${SCRIPT_PATH}/../UITests/UITests.xcodeproj"
6
6
# Disable "Use the Same Keyboard Language as macOS" in Simulator.app.
7
7
defaults write com.apple.iphonesimulator EnableKeyboardSync -bool NO
8
8
# Create the simulator we will use for the tests.
9
- xcrun simctl create " ${SIMULATOR_NAME} " " iPhone 8 " 2> /dev/null
9
+ xcrun simctl create " ${SIMULATOR_NAME} " " iPhone 13 " " iOS15.5 " 2> /dev/null
10
10
# Find the UDID of the newly created simulator.
11
11
SIMULATOR_UDID=` xcrun simctl list --json devices | jq -r " .devices | flatten | .[] | select(.name == \" ${SIMULATOR_NAME} \" ).udid" `
12
12
# Edit the simulator's .GlobalPreferences.plist to use the Korean language.
Original file line number Diff line number Diff line change @@ -95,37 +95,6 @@ final class KoreanInputTests: XCTestCase {
95
95
XCTAssertEqual ( app. textView? . value as? String , " \" 어 \" " )
96
96
}
97
97
98
- func testInsertingKoreanCharactersBelowStringContainingKoreanLetters( ) throws {
99
- let app = XCUIApplication ( ) . disablingTextPersistance ( )
100
- app. launch ( )
101
- app. textView? . tap ( )
102
- app. keys [ " ㅇ " ] . tap ( )
103
- app. keys [ " ㅓ " ] . tap ( )
104
- app. keys [ " ㅇ " ] . tap ( )
105
- app. keys [ " ㅓ " ] . tap ( )
106
- app. keys [ " ㅇ " ] . tap ( )
107
- app. keys [ " ㅓ " ] . tap ( )
108
- app. buttons [ " Return " ] . tap ( )
109
- app. keys [ " more " ] . tap ( )
110
- app. keys [ " \" " ] . tap ( )
111
- app. keys [ " more " ] . tap ( )
112
- app. keys [ " ㅇ " ] . tap ( )
113
- app. keys [ " ㅓ " ] . tap ( )
114
- app. keys [ " ㅇ " ] . tap ( )
115
- app. keys [ " ㅓ " ] . tap ( )
116
- app. keys [ " ㅇ " ] . tap ( )
117
- app. keys [ " ㅓ " ] . tap ( )
118
- app. tap ( at: CGPoint ( x: 100 , y: 100 ) )
119
- app. buttons [ " Return " ] . tap ( )
120
- app. keys [ " ㅇ " ] . tap ( )
121
- app. keys [ " ㅓ " ] . tap ( )
122
- app. keys [ " ㅇ " ] . tap ( )
123
- app. keys [ " ㅓ " ] . tap ( )
124
- app. keys [ " ㅇ " ] . tap ( )
125
- app. keys [ " ㅓ " ] . tap ( )
126
- XCTAssertEqual ( app. textView? . value as? String , " 어어어 \n \" 어어어 \" \n 어어어 " )
127
- }
128
-
129
98
func testInsertingKoreanCharactersInTextWithCRLFLineEndings( ) throws {
130
99
let app = XCUIApplication ( ) . disablingTextPersistance ( ) . usingCRLFLineEndings ( )
131
100
app. launch ( )
Original file line number Diff line number Diff line change @@ -10,13 +10,6 @@ extension XCUIApplication {
10
10
scrollViews. children ( matching: . textView) . element
11
11
}
12
12
13
- func tap( at point: CGPoint ) {
14
- let normalized = coordinate ( withNormalizedOffset: . zero)
15
- let offset = CGVector ( dx: point. x, dy: point. y)
16
- let coordinate = normalized. withOffset ( offset)
17
- coordinate. tap ( )
18
- }
19
-
20
13
func disablingTextPersistance( ) -> Self {
21
14
var newLaunchEnvironment = launchEnvironment
22
15
newLaunchEnvironment [ EnvironmentKey . disableTextPersistance] = " 1 "
You can’t perform that action at this time.
0 commit comments