Skip to content

Commit 993cc6b

Browse files
committed
Add GitHub Actions workflow for running tests on push
Also fix FakeSession to conform to VT100ScreenDelegate by adding the missing screenSendTmuxOSC4Report stub method.
1 parent 7ffded8 commit 993cc6b

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
test:
11+
runs-on: macos-14
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
submodules: recursive
18+
19+
- name: Select Xcode
20+
run: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
21+
22+
- name: Show Xcode version
23+
run: xcodebuild -version
24+
25+
- name: Build
26+
run: make Development
27+
28+
- name: Run tests
29+
run: xcodebuild test -project iTerm2.xcodeproj -scheme ModernTests -parallel-testing-enabled NO

ModernTests/VT100ScreenTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,6 +1570,10 @@ class FakeSession: NSObject, VT100ScreenDelegate {
15701570

15711571
func screenSendReport(_ data: Data) {
15721572

1573+
}
1574+
1575+
func screenSendTmuxOSC4Report(_ data: Data) {
1576+
15731577
}
15741578

15751579
func screenDidSendAllPendingReports() {

0 commit comments

Comments
 (0)