Skip to content
Snippets Groups Projects
Commit f6857d3a authored by Michael's avatar Michael :herb:
Browse files

fix(rails): prepare test db without any seeds

parent 2de1b80e
No related branches found
No related tags found
No related merge requests found
Pipeline #284769 passed
......@@ -137,7 +137,7 @@ app 🧪 test:
- cd .temp-with-dockerfile
- bundle config set path 'tmp/cache'
- bundle install -j $(nproc)
- bundle exec rake db:setup
- bundle exec rake db:test:prepare
- bundle exec rake assets:precompile assets:clean
- bundle exec rspec
cache: *a2
......
......@@ -137,7 +137,7 @@ app 🧪 test:
- cd .
- bundle config set path 'tmp/cache'
- bundle install -j $(nproc)
- bundle exec rake db:setup
- bundle exec rake db:test:prepare
- bundle exec rake assets:precompile assets:clean
- bundle exec rspec
cache: *a2
......
......@@ -93,7 +93,7 @@ export const createRailsTestJobs = (
`cd ${context.build.dir}`,
...bundlerInstall,
...(ensureArrayOrNull(buildConfig.test?.command) ?? [
"bundle exec rake db:setup",
"bundle exec rake db:test:prepare",
"bundle exec rake assets:precompile assets:clean",
"bundle exec rspec",
]),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment