Skip to content

Commit

Permalink
Expand/Moderize CI, support catalyst
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Mar 2, 2024
1 parent 5cd0787 commit 8dc9148
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ on:
- main

env:
DEVELOPER_DIR: /Applications/Xcode_15.0.1.app/Contents/Developer
DEVELOPER_DIR: /Applications/Xcode_15.2.app/Contents/Developer

jobs:
test:
name: Test
runs-on: macOS-13
runs-on: macOS-14
strategy:
matrix:
destination:
- "platform=macOS"
- "platform=macOS,variant=Mac Catalyst"
- "platform=iOS Simulator,name=iPhone 12"
- "platform=tvOS Simulator,name=Apple TV"

- "platform=visionOS Simulator,name=Apple Vision Pro"

steps:
- uses: actions/checkout@v4
- name: Install XCBeautify
run: brew install xcbeautify
- name: Test platform ${{ matrix.destination }}
run: set -o pipefail && xcodebuild -scheme TextStory-Package -destination "${{ matrix.destination }}" test | xcbeautify --renderer github-actions
run: set -o pipefail && xcodebuild -scheme TextStory-Package -destination "${{ matrix.destination }}" test | xcbeautify
2 changes: 1 addition & 1 deletion Tests/TextStoryTests/TextViewTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import XCTest
import TextStory
import TextStoryTesting

#if canImport(AppKit)
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
extension NSTextView {
var text: String { string }
}
Expand Down

0 comments on commit 8dc9148

Please sign in to comment.