Skip to content

Commit

Permalink
Upload fastlane log artifacts (#427)
Browse files Browse the repository at this point in the history
Update fastlane tests to collect and upload build logs as an artifact.
These can the be manually downloaded to help debug build failures in CI.

Testing:
Verified that an artifact was created and had expected contents
  • Loading branch information
theospears authored Jan 8, 2024
1 parent cacab44 commit b885c84
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/fastlane-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b885c84

Please sign in to comment.