-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a script to set up the dummy app for running the dummy app test…
… suite locally and changed the GitHub Actions workflow to leverage the new setup script.
- Loading branch information
1 parent
904eb53
commit 4af59cd
Showing
4 changed files
with
32 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -xeuo pipefail | ||
|
||
DIRECTORY=spec/tmp/dummy_app-rails-$1 | ||
|
||
mkdir -p $DIRECTORY | ||
cp spec/dummy_app_config/gemfiles/Gemfile-rails-$1 $DIRECTORY/Gemfile | ||
cd $DIRECTORY | ||
bundle config set --local path gems | ||
bundle install | ||
bundle exec rails new dummy_app --database=sqlite3 --skip-active-storage --skip-action-cable --skip-spring --skip-listen --skip-test --skip-bootsnap | ||
cat ../../dummy_app_config/Gemfile.append >> dummy_app/Gemfile | ||
cd dummy_app | ||
bundle install | ||
bundle exec rails generate rspec:install | ||
cp -rf ../../../dummy_app_config/shared_source/all/* ./ | ||
cp -rf ../../../dummy_app_config/shared_source/$1/* ./ | ||
yarn install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters