Skip to content

[BRE-769] Use Fastlane to keep github releases in sync with mobile deploy versions #1593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

michalchecinski
Copy link
Contributor

@michalchecinski michalchecinski commented May 16, 2025

🎟️ Tracking

https://bitwarden.atlassian.net/browse/BRE-769

📔 Objective

Add a workflow to check for new iOS version submitted to the stores. If a new version exists, publish the GitHub release as the latest and non-pre-release.

📸 Screenshots

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@michalchecinski michalchecinski requested review from a team and matt-livefront as code owners May 16, 2025 14:57
@michalchecinski michalchecinski requested review from a team and Eeebru and removed request for a team May 16, 2025 14:58
Copy link
Contributor

github-actions bot commented May 16, 2025

Logo
Checkmarx One – Scan Summary & Details5ca6d7d7-d973-4cbb-a307-0a3bc9381cc1

Great job, no security vulnerabilities found in this Pull Request

Copy link

codecov bot commented May 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.76%. Comparing base (bbb93bd) to head (a287fd8).
Report is 22 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1593      +/-   ##
==========================================
- Coverage   89.40%   85.76%   -3.64%     
==========================================
  Files         798      996     +198     
  Lines       50600    60485    +9885     
==========================================
+ Hits        45240    51877    +6637     
- Misses       5360     8608    +3248     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@vvolkgang vvolkgang left a comment

Choose a reason for hiding this comment

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

Waiting for the changes requested in https://github.com/bitwarden/android/pull/5219/files

…d Manager releases; update Fastfile to set STORE_VERSION in GitHub environment
@michalchecinski
Copy link
Contributor Author

michalchecinski commented May 30, 2025

@vvolkgang do we have fastlane enabled for iOS Authenticator?

Also, I've extracted the action to gh-actions repo to reuse it both here and in the Android repo: bitwarden/gh-actions#401

@michalchecinski michalchecinski requested a review from vvolkgang June 9, 2025 10:47
@@ -31,4 +31,16 @@ platform :ios do |options|
}
)
end

desc "Get latest published version"
lane :get_latest_version do
Copy link
Member

@vvolkgang vvolkgang Jun 26, 2025

Choose a reason for hiding this comment

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

Not differentiating between Password Manager and Authenticator. We can receive the bundle ID (app_identifier) as an argument here.


desc "Get latest published version"
lane :get_latest_version do
app_STORE_VERSION_NUMBER(
Copy link
Member

Choose a reason for hiding this comment

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

This should probably be lowercase.

credentials_filename: "appstoreconnect-fastlane.json"
project_type: ios
check_release_command: >
bundle exec fastlane ios get_latest_version_authenticator api_key_path:$CREDENTIALS_PATH
Copy link
Member

Choose a reason for hiding this comment

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

Lane name.

@michalchecinski
Copy link
Contributor Author

@vvolkgang Should be good to go

@michalchecinski michalchecinski requested a review from vvolkgang July 3, 2025 08:57
@michalchecinski
Copy link
Contributor Author

@vvolkgang Tested the workflow. Seems to be working fine now: https://github.com/bitwarden/ios/actions/runs/16055035313

@michalchecinski michalchecinski merged commit fbcbf82 into main Jul 15, 2025
12 checks passed
@michalchecinski michalchecinski deleted the BRE-769-Use-Fastlane-to-keep-github-releases-in-sync-with-mobile-deploy-versions branch July 15, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants