Skip to content

Commit

Permalink
Fix DATABASE_URL variable in the ci template [skip ci]
Browse files Browse the repository at this point in the history
The DATABASE_URL variable should follow the database option
  • Loading branch information
OuYangJinTing committed Jan 6, 2025
1 parent 54f5c36 commit c2a3ab3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,10 @@ jobs:
- name: Run tests
env:
RAILS_ENV: test
<%- if options[:database] == "mysql" || options[:database] == "trilogy" -%>
<%- if options[:database] == "mysql" -%>
DATABASE_URL: mysql2://127.0.0.1:3306
<%- elsif options[:database] == "trilogy" -%>
DATABASE_URL: trilogy://127.0.0.1:3306
<%- elsif options[:database] == "postgresql" -%>
DATABASE_URL: postgres://postgres:postgres@localhost:5432
<%- end -%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ jobs:
- name: Run tests
env:
RAILS_ENV: test
<%- if options[:database] == "mysql" || options[:database] == "trilogy" -%>
<%- if options[:database] == "mysql" -%>
DATABASE_URL: mysql2://127.0.0.1:3306
<%- elsif options[:database] == "trilogy" -%>
DATABASE_URL: trilogy://127.0.0.1:3306
<%- elsif options[:database] == "postgresql" -%>
DATABASE_URL: postgres://postgres:postgres@localhost:5432
<%- end -%>
Expand All @@ -100,4 +102,3 @@ jobs:
path: ${{ github.workspace }}/tmp/screenshots
if-no-files-found: ignore
<% end -%>

0 comments on commit c2a3ab3

Please sign in to comment.