refactor: rename action

This commit is contained in:
Malo Léon 2023-04-26 11:00:26 +02:00
parent 19338d2e04
commit c36c30ff75
5 changed files with 6 additions and 5 deletions

View File

@ -10,7 +10,7 @@ This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To
fastlane add_plugin android_cd
```
## About android_cd
## About build_and_deploy
Google Play Store deployment plugin for Fastlane, simplifying the build and deployment process to internal, beta, alpha, and production channels, and promoting builds for testing.
@ -31,6 +31,7 @@ rake
```
To automatically fix many of the styling issues, use
```
rubocop -a
```

View File

@ -1,3 +1,3 @@
lane :test do
android_cd(beta_type: "internal")
build_and_deploy(beta_type: "internal")
end

View File

@ -3,7 +3,7 @@ require_relative '../helper/android_cd_helper'
module Fastlane
module Actions
class AndroidCdAction < Action
class BuildAndDeployAction < Action
def self.run(params)
# Check parameters
unless Helper::AndroidCdHelper.is_set(params[:beta_type])

View File

@ -1,9 +1,9 @@
describe Fastlane::Actions::AndroidCdAction do
describe Fastlane::Actions::BuildAndDeployAction do
describe '#run' do
it 'prints a message' do
expect(Fastlane::UI).to receive(:message).with("The android_cd plugin is working!")
Fastlane::Actions::AndroidCdAction.run(nil)
Fastlane::Actions::BuildAndDeployAction.run(nil)
end
end
end