Various CI fixes (#161)

* Update homebrew dependencies like on the other workflows. Fixes problems caused by buggy swiftformat prebundled on the github actions macos runner

* Removed UI tests from PR tests and running them on a schedule instead. Hopefuly fixed code coverage.

* Added back simulator versions as they need to match UI test snapshots

* Allow UI tests to run on this PR

* Added back skipped UI tests

* Fix danger sometimes not working on forks and disable integration tests on them
This commit is contained in:
Stefan Ceriu
2022-08-19 17:42:03 +03:00
committed by GitHub
parent 78df4abc7f
commit 142180b1f3
10 changed files with 113 additions and 27 deletions
+13 -7
View File
@@ -72,19 +72,25 @@ lane :adhoc do
)
end
lane :tests do
lane :unit_tests do
run_tests(
project: "ElementX.xcodeproj",
scheme: "UnitTests"
)
slather(
cobertura_xml: true,
output_directory: "./fastlane/test_output",
proj: "ElementX.xcodeproj",
scheme: "UnitTests",
)
end
lane :ui_tests do
run_tests(
project: "ElementX.xcodeproj",
scheme: "UITests",
devices: ["iPhone 13 Pro Max", "iPad (9th generation)"],
devices: ["iPhone 13 Pro Max (15.5)", "iPad (9th generation) (15.5)"],
ensure_devices_found: true,
prelaunch_simulator: true,
output_directory: "fastlane/test_output/",
result_bundle: true
)
@@ -92,9 +98,9 @@ lane :tests do
cobertura_xml: true,
output_directory: "./fastlane/test_output",
proj: "ElementX.xcodeproj",
scheme: "ElementX",
scheme: "UITests",
binary_basename: "ElementX.app"
)
end
lane :integration_tests do