Skip to content

Commit

Permalink
debugging integration failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Judahmeek committed Jun 25, 2024
1 parent 6cc3d4f commit 25edd25
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ jobs:
git config user.email "[email protected]"
git config user.name "Your Name"
git commit -am "stop generators from complaining about uncommitted code"
- run: bundle info shakapacker
- name: Main CI
run: bundle exec rake run_rspec:all_dummy
- name: Store test results
Expand Down
4 changes: 2 additions & 2 deletions rakelib/shakapacker_examples.rake
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace :shakapacker_examples do # rubocop:disable Metrics/BlockLength
example_type.rails_options += "--skip-javascript"
sh_in_dir(examples_dir, "rails new #{example_type.name} #{example_type.rails_options}")
sh_in_dir(example_type.dir, "touch .gitignore")
append_to_gemfile(example_type.gemfile)
append_to_gemfile(example_type.gemfile, example_type.dir)
bundle_install_in(example_type.dir)
sh_in_dir(example_type.dir, "rake shakapacker:install")
sh_in_dir(example_type.dir, example_type.generator_shell_commands)
Expand All @@ -58,7 +58,7 @@ private

# Appends each string in an array as a new line of text in the given Gemfile.
# Automatically adds line returns.
def append_to_gemfile(gemfile)
def append_to_gemfile(gemfile, dir)
relative_gem_root = Pathname(gem_root).relative_path_from(Pathname(dir))
lines = [
"gem 'react_on_rails', path: '#{relative_gem_root}'",
Expand Down
4 changes: 2 additions & 2 deletions rakelib/webpacker_examples.rake
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace :webpacker_examples do # rubocop:disable Metrics/BlockLength
example_type.rails_options += "--skip-javascript"
sh_in_dir(examples_dir, "rails new #{example_type.name} #{example_type.rails_options}")
sh_in_dir(example_type.dir, "touch .gitignore")
append_to_gemfile(example_type.gemfile)
append_to_gemfile(example_type.gemfile, example_type.dir)
bundle_install_in(example_type.dir)
sh_in_dir(example_type.dir, "rake webpacker:install")
sh_in_dir(example_type.dir, example_type.generator_shell_commands)
Expand All @@ -58,7 +58,7 @@ private

# Appends each string in an array as a new line of text in the given Gemfile.
# Automatically adds line returns.
def append_to_gemfile(gemfile)
def append_to_gemfile(gemfile, dir)
relative_gem_root = Pathname(gem_root).relative_path_from(Pathname(dir))
lines = [
"gem 'react_on_rails', path: '#{relative_gem_root}'",
Expand Down

0 comments on commit 25edd25

Please sign in to comment.