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
18 changes: 8 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ on:
branches:
- master

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

jobs:
CI:
if: false # off until this is resolved https://github.com/actions/virtual-environments/issues/2486
runs-on: macos-11.0
runs-on: macos-11
strategy:
fail-fast: false
matrix:
Expand All @@ -20,7 +23,7 @@ jobs:
include:
- platform: iOS
action: test
destination: "'platform=iOS Simulator,name=iPhone 8,OS=14.4'"
destination: "'platform=iOS Simulator,name=iPhone 8,OS=14.5'"

- platform: iOS
action: archive
Expand All @@ -34,11 +37,6 @@ jobs:
action: archive
destination: "'platform=macOS,arch=x86_64'"
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.5.0
with:
access_token: ${{ github.token }}

- name: Git Checkout
uses: actions/checkout@v2

Expand All @@ -47,8 +45,8 @@ jobs:

- name: ${{ matrix.platform }} ${{ matrix.action }}
run: |
NSUnbufferedIO=YES \
set -o pipefail && \
xcodebuild clean ${{ matrix.action }} \
-destination ${{ matrix.destination }} \
-scheme TextBuilder \
2>&1 | xcbeautify
| xcbeautify
4 changes: 3 additions & 1 deletion Tests/TextBuilderTests/TextSnapshotHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ func assertTextSnapshot(_ text: Text, file: StaticString = #file, testName: Stri
.background(Color.white)

#if os(macOS)
// TODO: `image` snapshot tests on macOS
// https://github.com/pointfreeco/swift-snapshot-testing/pull/477
let nsView = NSHostingView(rootView: view)
assertSnapshot(
matching: nsView,
as: .image(size: nsView.fittingSize),
as: .dump,
named: "macOS",
record: isRecording,
file: file,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- <_TtGC7SwiftUI13NSHostingViewGVS_15ModifiedContentGS1_GS1_GS1_VS_4TextGVS_30_EnvironmentKeyWritingModifierOS_11ColorScheme__GS3_OS_19ContentSizeCategory__VS_16_FixedSizeLayout_GVS_19_BackgroundModifierVS_5Color___>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- <_TtGC7SwiftUI13NSHostingViewGVS_15ModifiedContentGS1_GS1_GS1_VS_4TextGVS_30_EnvironmentKeyWritingModifierOS_11ColorScheme__GS3_OS_19ContentSizeCategory__VS_16_FixedSizeLayout_GVS_19_BackgroundModifierVS_5Color___>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- <_TtGC7SwiftUI13NSHostingViewGVS_15ModifiedContentGS1_GS1_GS1_VS_4TextGVS_30_EnvironmentKeyWritingModifierOS_11ColorScheme__GS3_OS_19ContentSizeCategory__VS_16_FixedSizeLayout_GVS_19_BackgroundModifierVS_5Color___>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- <_TtGC7SwiftUI13NSHostingViewGVS_15ModifiedContentGS1_GS1_GS1_VS_4TextGVS_30_EnvironmentKeyWritingModifierOS_11ColorScheme__GS3_OS_19ContentSizeCategory__VS_16_FixedSizeLayout_GVS_19_BackgroundModifierVS_5Color___>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- <_TtGC7SwiftUI13NSHostingViewGVS_15ModifiedContentGS1_GS1_GS1_VS_4TextGVS_30_EnvironmentKeyWritingModifierOS_11ColorScheme__GS3_OS_19ContentSizeCategory__VS_16_FixedSizeLayout_GVS_19_BackgroundModifierVS_5Color___>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- <_TtGC7SwiftUI13NSHostingViewGVS_15ModifiedContentGS1_GS1_GS1_VS_4TextGVS_30_EnvironmentKeyWritingModifierOS_11ColorScheme__GS3_OS_19ContentSizeCategory__VS_16_FixedSizeLayout_GVS_19_BackgroundModifierVS_5Color___>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- <_TtGC7SwiftUI13NSHostingViewGVS_15ModifiedContentGS1_GS1_GS1_VS_4TextGVS_30_EnvironmentKeyWritingModifierOS_11ColorScheme__GS3_OS_19ContentSizeCategory__VS_16_FixedSizeLayout_GVS_19_BackgroundModifierVS_5Color___>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- <_TtGC7SwiftUI13NSHostingViewGVS_15ModifiedContentGS1_GS1_GS1_VS_4TextGVS_30_EnvironmentKeyWritingModifierOS_11ColorScheme__GS3_OS_19ContentSizeCategory__VS_16_FixedSizeLayout_GVS_19_BackgroundModifierVS_5Color___>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- <_TtGC7SwiftUI13NSHostingViewGVS_15ModifiedContentGS1_GS1_GS1_VS_4TextGVS_30_EnvironmentKeyWritingModifierOS_11ColorScheme__GS3_OS_19ContentSizeCategory__VS_16_FixedSizeLayout_GVS_19_BackgroundModifierVS_5Color___>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- <_TtGC7SwiftUI13NSHostingViewGVS_15ModifiedContentGS1_GS1_GS1_VS_4TextGVS_30_EnvironmentKeyWritingModifierOS_11ColorScheme__GS3_OS_19ContentSizeCategory__VS_16_FixedSizeLayout_GVS_19_BackgroundModifierVS_5Color___>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- <_TtGC7SwiftUI13NSHostingViewGVS_15ModifiedContentGS1_GS1_GS1_VS_4TextGVS_30_EnvironmentKeyWritingModifierOS_11ColorScheme__GS3_OS_19ContentSizeCategory__VS_16_FixedSizeLayout_GVS_19_BackgroundModifierVS_5Color___>