[go: nahoru, domu]

Skip to content
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

[Feature] import from gem action #20294

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Prev Previous commit
Do not pollute project with test generated bundle caches
  • Loading branch information
lacostej committed Jan 15, 2024
commit d6c5146e8d6843f0bb13420c1d6bd16ff4642caf
6 changes: 6 additions & 0 deletions fastlane/spec/actions_specs/import_from_gem_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'tmpdir'

describe Fastlane do
describe Fastlane::FastFile do
describe "import_from_spec" do
Expand All @@ -12,6 +14,8 @@
it "loads all fastfile paths specified and find the lanes" do
Bundler.with_unbundled_env do
Dir.chdir("fastlane/spec/fixtures/plugins/ImportFromGem") do
path = Dir.mktmpdir
`bundle config set --local path #{path}`
`bundle install`
output = `bundle exec fastlane lanes`
expect(output.index("----- fastlane first")).not_to eq(nil)
Expand All @@ -23,6 +27,8 @@
it "runs imported actions from an imported gem" do
Bundler.with_unbundled_env do
Dir.chdir("fastlane/spec/fixtures/plugins/ImportFromGem") do
path = Dir.mktmpdir
`bundle config set --local path #{path}`
`bundle install`
output = `bundle exec fastlane first`
expect(output.index("Step: example_action")).not_to eq(nil)
Expand Down
2 changes: 2 additions & 0 deletions fastlane/spec/plugins_specs/plugin_manager_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
it "returns all fastlane plugins found in transitive dependencies" do
Bundler.with_unbundled_env do
Dir.chdir("fastlane/spec/fixtures/plugins/GemfileWithDeps") do
path = Dir.mktmpdir
`bundle config set --local path #{path}`
`bundle install`
output = `bundle exec fastlane lanes`
expect(output.include?("fastlane-plugin-appcenter")).to be true
Expand Down