File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
railties/lib/rails/generators/rails Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -120,8 +120,10 @@ jobs:
120
120
- name: Run tests
121
121
env:
122
122
RAILS_ENV: test
123
- <%- if options[:database] == "mysql" || options[:database] == "trilogy" -%>
123
+ <%- if options[:database] == "mysql" -%>
124
124
DATABASE_URL: mysql2://127.0.0.1:3306
125
+ <%- elsif options[:database] == "trilogy" -%>
126
+ DATABASE_URL: trilogy://127.0.0.1:3306
125
127
<%- elsif options[:database] == "postgresql" -%>
126
128
DATABASE_URL: postgres://postgres:postgres@localhost:5432
127
129
<%- end -%>
Original file line number Diff line number Diff line change 84
84
- name: Run tests
85
85
env:
86
86
RAILS_ENV: test
87
- <%- if options[:database] == "mysql" || options[:database] == "trilogy" -%>
87
+ <%- if options[:database] == "mysql" -%>
88
88
DATABASE_URL: mysql2://127.0.0.1:3306
89
+ <%- elsif options[:database] == "trilogy" -%>
90
+ DATABASE_URL: trilogy://127.0.0.1:3306
89
91
<%- elsif options[:database] == "postgresql" -%>
90
92
DATABASE_URL: postgres://postgres:postgres@localhost:5432
91
93
<%- end -%>
@@ -100,4 +102,3 @@ jobs:
100
102
path: ${{ github.workspace }}/tmp/screenshots
101
103
if-no-files-found: ignore
102
104
<% end -%>
103
-
You can’t perform that action at this time.
0 commit comments