Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 19 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,41 @@ on:
- main
pull_request:
branches:
- main
- "**"
schedule:
- cron: '3 3 * * 2' # 3:03 AM, every Tuesday

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
CI:
macOS:
name: ${{ matrix.platform }}
runs-on: macos-11
strategy:
fail-fast: false
matrix:
platform: [iOS, macOS]
action: [test, archive]
platform:
- iOS
- macOS
- tvOS
include:
- platform: iOS
action: test
destination: "'platform=iOS Simulator,name=iPhone 8,OS=14.5'"

- platform: iOS
action: archive
destination: "'generic/platform=iOS'"

destination: "'platform=iOS Simulator,name=iPhone 8,OS=15.0'"
- platform: macOS
action: test
destination: "'platform=macOS,arch=x86_64'"

- platform: macOS
action: archive
destination: "'platform=macOS,arch=x86_64'"
- platform: tvOS
destination: "'platform=tvOS Simulator,name=Apple TV,OS=15.0'"
steps:
- name: Git Checkout
uses: actions/checkout@v2

- name: Install Dependencies
run: brew install xcbeautify

- name: ${{ matrix.platform }} ${{ matrix.action }}
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Run Tests
run: |
set -o pipefail && \
xcodebuild clean ${{ matrix.action }} \
xcodebuild clean test \
-destination ${{ matrix.destination }} \
-scheme TextBuilder \
| xcbeautify
| xcpretty
2 changes: 2 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ let package = Package(
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.tvOS(.v13),
.watchOS(.v6),
],
products: [
.library(name: "TextBuilder", targets: ["TextBuilder"]),
Expand Down
9 changes: 7 additions & 2 deletions Tests/TextBuilderTests/TextSnapshotHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,16 @@ func assertTextSnapshot(_ text: Text, file: StaticString = #file, testName: Stri
testName: testName,
line: line
)
#elseif os(iOS)
#else
#if os(iOS)
let os = "iOS"
#elseif os(tvOS)
let os = "tvOS"
#endif
assertSnapshot(
matching: view,
as: .image,
named: "iOS",
named: os,
record: isRecording,
file: file,
testName: testName,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.