Skip to content

Commit

Permalink
Run CI with postgis adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Apr 8, 2024
1 parent 23a3bc6 commit eb9ccef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,16 @@ jobs:
- postgresql
- mysql2
- oracle_enhanced
- postgis
# - trilogy
exclude:
- rails: rails_7.1.0
adapter: oracle_enhanced

- rails: rails_7.1.0
adapter: postgis
ruby: 2.7'

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion spec/dummy/config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ test:
database: ajax_datatables_rails
encoding: utf8

<% if adapter == 'postgresql' %>
<% if adapter == 'postgresql' || adapter == 'postgis' %>
host: '127.0.0.1'
port: 5432
username: 'postgres'
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def self.mysql?
end

def self.postgresql?
ENV['DB_ADAPTER'] == 'postgresql'
ENV['DB_ADAPTER'] == 'postgresql' || ENV['DB_ADAPTER'] == 'postgis'
end
end

Expand Down

0 comments on commit eb9ccef

Please sign in to comment.