What is a fastlane action?
Fastlane actions are built-in commands (actions) for which you don’t need to install any plugin or 3rd party tool.
To check the available list of all the actions you can run the following command:
...and the list will be displayed like the following image:
If you want to get more information for a specific action, you can the following command:
Now let’s explore together the most useful and commonly used fastlane actions!
These actions help you manage the app’s dependencies, as well as build, update and run your iOS and Android apps with different options. For example:
Testing and code style
While building your mobile apps you should always take care of the static code analysis, code coverage, and lint with the following actions:
Before deploying our iOS and Android apps, you should sign them with the certificates and profiles by the following actions:
Tip: Bitrise has a Step called Fastlane Match, which takes care of the code signing of your project by cloning your private certificate/profile repository and registering the certificates and profiles in the keychain. For more information, read the guide for Integrating Fastlane into Bitrise or find even more info here.
Beta releases are very important to test our mobile apps before deploying them to the production by mobile test engineers or our beta users. With fastlane actions, you have varieties of actions with different tools like the following:
Screenshots actions help you automate taking localized screenshots of your iOS, tvOS apps on every device and Android, simply by running one command with the following actions:
We can also use fastlane actions to send notifications to your Slack channels.
App Store Connect
Check your app's metadata before you submit your app to review.
Sometimes you need to update the iOS project details like the build number, project team, or the app identifier with the following actions:
If you want to explore more actions you can find them here.
How to use fastlane actions in your Fastfile?
FastFile is our main, ruby-based fastlane file, which we can add the actions as lanes inside this file. For example if we need to use the Gradle action in our Android project we can use the following example:
And from the commandline, you can run:
Fastlane is one of the best tools for simplifying Android and iOS deployment. And it’s the easiest way to build and release mobile apps and with actions, we have varieties of options we can do to speed our build and release processes.
Stay safe, and happy learning!