diff --git a/.github/workflows/fastlane-tests.yml b/.github/workflows/fastlane-tests.yml index ff530ebf5..f30367ade 100644 --- a/.github/workflows/fastlane-tests.yml +++ b/.github/workflows/fastlane-tests.yml @@ -21,6 +21,12 @@ jobs: bundler-cache: true - name: Run tests run: bundle exec fastlane test + - name: Upload report + uses: actions/upload-artifact@v4 + if: always() # always run even if the previous step fails + with: + name: test-output + path: fastlane/test_output - name: Publish Test Report uses: mikepenz/action-junit-report@v4 if: always() # always run even if the previous step fails diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 3abb807f3..91108cbb0 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -17,7 +17,13 @@ default_platform(:ios) platform :ios do lane :test do - run_tests(scheme: "BeeSwift") + run_tests( + scheme: "BeeSwift", + reset_simulator: true, + include_simulator_logs: true, + buildlog_path: "fastlane/test_output", + xcodebuild_formatter: "xcpretty", + ) end lane :build do build_app(scheme: "BeeSwift")