diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index f6e669086..7fc97c6e5 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -11,7 +11,7 @@ on: jobs: build: - runs-on: macos-latest + runs-on: macos-13 steps: - uses: actions/checkout@v3 - uses: swift-actions/setup-swift@65540b95f51493d65f5e59e97dcef9629ddf11bf @@ -19,8 +19,10 @@ jobs: swift-version: "5.8" - uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: latest-stable - - name: Build - run: swift build -v - - name: Run tests - run: swift test -v + xcode-version: '15.1.0' + - name: Build iOS + run: xcodebuild -project Demo/Demo.xcodeproj build -sdk iphoneos -scheme 'RichTextKit' + - name: Test iOS + run: xcodebuild -project Demo/Demo.xcodeproj test -sdk iphoneos -scheme 'RichTextKitTests' -destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=17.2' -enableCodeCoverage YES + + diff --git a/Demo/Demo.xcodeproj/xcshareddata/xcschemes/RichTextKitTests.xcscheme b/Demo/Demo.xcodeproj/xcshareddata/xcschemes/RichTextKitTests.xcscheme new file mode 100644 index 000000000..cc90add64 --- /dev/null +++ b/Demo/Demo.xcodeproj/xcshareddata/xcschemes/RichTextKitTests.xcscheme @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + +