refactor: rename action
This commit is contained in:
parent
19338d2e04
commit
c36c30ff75
@ -10,7 +10,7 @@ This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To
|
|||||||
fastlane add_plugin android_cd
|
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.
|
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
|
To automatically fix many of the styling issues, use
|
||||||
|
|
||||||
```
|
```
|
||||||
rubocop -a
|
rubocop -a
|
||||||
```
|
```
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
lane :test do
|
lane :test do
|
||||||
android_cd(beta_type: "internal")
|
build_and_deploy(beta_type: "internal")
|
||||||
end
|
end
|
||||||
|
@ -3,7 +3,7 @@ require_relative '../helper/android_cd_helper'
|
|||||||
|
|
||||||
module Fastlane
|
module Fastlane
|
||||||
module Actions
|
module Actions
|
||||||
class AndroidCdAction < Action
|
class BuildAndDeployAction < Action
|
||||||
def self.run(params)
|
def self.run(params)
|
||||||
# Check parameters
|
# Check parameters
|
||||||
unless Helper::AndroidCdHelper.is_set(params[:beta_type])
|
unless Helper::AndroidCdHelper.is_set(params[:beta_type])
|
@ -1,9 +1,9 @@
|
|||||||
describe Fastlane::Actions::AndroidCdAction do
|
describe Fastlane::Actions::BuildAndDeployAction do
|
||||||
describe '#run' do
|
describe '#run' do
|
||||||
it 'prints a message' do
|
it 'prints a message' do
|
||||||
expect(Fastlane::UI).to receive(:message).with("The android_cd plugin is working!")
|
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
|
end
|
||||||
end
|
end
|
Loading…
x
Reference in New Issue
Block a user