Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to ideal step architecture (#90)
* Broke up functionality in main.go into separate methods. * Further refactoring * Finished refactoring. * Moved methods around. * Adding comments to satisfy linter. * Updating comments to satisfy linter. * Adding comments to satisfy linter * Handled error returned from Run function * Split functionality into different files per PR feedback * Remove duplicate error message * Update short version. * fix typo in version setting script * Trying something * set build version to 1.0.1 * Update config.go Co-authored-by: Olivér Falvai <[email protected]> * Update receiver name to match Go coding conventions * Fix linter error * Fix build errors * Conform to new error messaging * Added error formatting * test commit * Revert "test commit" This reverts commit b11904a. * Fix issue with version numbers not incrementing properly when multiple uploads are made to appstore connect in the same workflow * Migrate to v2 for utils and steputils * Migrate to v2 for utils and steputils * Reverted some conversions to v2 * Added back missing function call * Updating build number code one more time * Upgrade to go-utils v2 for pathutil and retry * Set go version to 1.17 to match oldest version on stacks * Added a few unit tests * Skip cache workdlow and make build fail on fastlane upload to check build log output. * Fix linter error * Fix unit test * Fix unit test * Switched to using check step for testing. Updated error messaging. * Fix linter errors * Fixed build error * Restore cache workflow * Remove commented code * Use logger instance instead of fmt * Moved gemVersions to Config, refactored InstallDependencies to remove config input * Remove default values from initializer * Add Inputs struct to Config * Added summaries for inputs in step.yml to satisfy linter warnings * Fix compile errors in unit tests * Fix input unmarshalling * Utilize new command error format * Added RunOpts, moved caching to Run phase, fixed creation of multiple environment repositories * Utilize new command error format, and migrate to using logger in step * Used short variable declaration to keep the scope of errors as short as possible, moved caching functions to step struct * Return error for inability to parse gemfile, fix logging level for non errors * Converted errors to warnings, handled with new error messaging, fixed typo in step.yml * Updated fastlane errors to match new error format * Updated name of error variable for clarity * Updated command error format to latest * Reduce some duplicate code around error handling * rename formattedCommandErrorMessage and make it return an error * Make the step print the inputs instead of the processed config * Update fastlane failure warning log message * Channel stderr of the fastlane env cmd to the fastlane_env.log file * Update logs * Update logs * Update Fastlane command error message Co-authored-by: Olivér Falvai <[email protected]> Co-authored-by: Krisztián Gödrei <[email protected]>
- Loading branch information