Skip to content

Commit

Permalink
Install rails for development but not for test
Browse files Browse the repository at this point in the history
set RAILS_ENV to test for test
  • Loading branch information
rammpeter committed Sep 16, 2023
1 parent a0b5dbd commit c930390
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
# CONTAINER contains CDB or PDB
CONTAINER: ${{ inputs.container }}
JRUBY_OPTS: "-J-Djava.security.egd=file:/dev/./urandom"

RAILS_ENV: test

steps:
- uses: actions/checkout@v1
Expand Down
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ gem 'jwt'
gem 'rexml'

group :development do
# Ensure that the whole rails is installed in development environment, but not used in dev exec., especially to call "rails server"
gem 'rails', rails_version
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 4.1.0'
# Display performance information such as SQL time and flame graphs for each request in your browser.
Expand All @@ -70,8 +72,6 @@ group :development do
end

group :test do
# Ensure that the whole rails is installed in development environment, but not used in dev exec., especially to call "rails server"
gem 'rails', rails_version
# alternative to selenium
gem 'playwright-ruby-client'
end
Expand Down

0 comments on commit c930390

Please sign in to comment.