Skip to content
This repository was archived by the owner on Dec 30, 2021. It is now read-only.

Conversation

@gonzalezreal
Copy link
Owner

Add CI job and fix watchOS build

@gonzalezreal gonzalezreal force-pushed the ci branch 2 times, most recently from f05254f to e628372 Compare September 23, 2020 16:34
default: test

test:
xcodebuild test \
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a command to run the tests on macOS once macOS 11.0 is officially released, together with Xcode 12.2.

let view = AdaptiveCardView(url: fixtureURL("richTextBlock.json"))
.animation(nil)
.adaptiveCardConfiguration(HostConfig())
.environment(\.locale, Locale(identifier: "en_US"))
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test was flaky when using the date and time formatting, even forcing the language and locale in xcodebuild. I removed the date formatting part from the fixture.

assertSnapshot(matching: vc, as: .wait(for: 0.25, on: .image))
}

func testDateAndTime() {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another flaky test that was failing when running CI, even specifying language and locale in xcodebuild.

@gonzalezreal gonzalezreal merged commit b82345e into main Sep 23, 2020
@gonzalezreal gonzalezreal deleted the ci branch September 23, 2020 16:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants