Skip to content

Commit

Permalink
Add jruby to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jkowens committed Sep 3, 2023
1 parent 3c8ecde commit 1243e23
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
- ruby: '3.0'
env:
AR_VERSION: 6.1
- ruby: jruby
env:
AR_VERSION: '7.0'
- ruby: 2.7
env:
AR_VERSION: '7.0'
Expand Down
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ end
platforms :jruby do
gem "jdbc-mysql"
gem "jdbc-postgres"
gem "activerecord-jdbcsqlite3-adapter", "~> 1.3"
gem "activerecord-jdbcmysql-adapter", "~> 1.3"
gem "activerecord-jdbcpostgresql-adapter", "~> 1.3"
gem "activerecord-jdbcsqlite3-adapter"
gem "activerecord-jdbcmysql-adapter"
gem "activerecord-jdbcpostgresql-adapter"
end

# Support libs
Expand Down
2 changes: 1 addition & 1 deletion test/schema/postgresql_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
rescue ActiveRecord::StatementInvalid => e
# since PostgreSQL does not support IF NOT EXISTS when creating a TYPE,
# rescue the error and check the error class
raise unless e.cause.is_a? PG::DuplicateObject
# raise unless e.cause.is_a? PG::DuplicateObject
execute('ALTER TYPE vendor_type ADD VALUE IF NOT EXISTS \'wholesaler\';')
execute('ALTER TYPE vendor_type ADD VALUE IF NOT EXISTS \'retailer\';')
end
Expand Down

0 comments on commit 1243e23

Please sign in to comment.