Skip to content

Commit

Permalink
Add Ruby 3.3 to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
westonganger committed Dec 26, 2023
1 parent 6c1df7d commit 97b67da
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
name: Tests
on:
push:
branches: ['*']
branches: ['master']
pull_request:
branches: ['*']

jobs:
test_sqlite:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
### TEST ALL RUBY VERSIONS, USE DEFAULT GEMFILE
- ruby: 2.6
- ruby: 2.7
- ruby: 3.0
- ruby: 3.1
- ruby: "2.6"
- ruby: "2.7"
- ruby: "3.0"
- ruby: "3.1"
- ruby: "3.2"

### RAILS VERSION TESTING
- ruby: 2.6
- ruby: "2.6"
gemfile: gemfiles/sqlite3_ar_5.2_pt_12.0.gemfile
- ruby: 2.6
- ruby: "2.6"
gemfile: gemfiles/sqlite3_ar_6.0_pt_12.0.gemfile
- ruby: 2.6
- ruby: "2.6"
gemfile: gemfiles/sqlite3_ar_6.1_pt_12.0.gemfile
- ruby: 3.1
- ruby: "3.2"
gemfile: gemfiles/sqlite3_ar_7.0_pt_12.0.gemfile

env:
Expand All @@ -48,7 +48,7 @@ jobs:
test_mysql:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
services:
mysql:
image: mariadb
Expand All @@ -64,13 +64,13 @@ jobs:
include:
### RAILS VERSION TESTING
### DONT WORRY ABOUT TESTING ALL RUBY VERSIONS. THIS IS COVERED IN THE SQLITE3 TESTS
- ruby: 2.6
- ruby: "2.6"
gemfile: gemfiles/mysql2_ar_5.2_pt_12.0.gemfile
- ruby: 2.6
- ruby: "2.6"
gemfile: gemfiles/mysql2_ar_6.0_pt_12.0.gemfile
- ruby: 2.6
- ruby: "2.6"
gemfile: gemfiles/mysql2_ar_6.1_pt_12.0.gemfile
- ruby: 3.1
- ruby: "3.2"
gemfile: gemfiles/mysql2_ar_7.0_pt_12.0.gemfile

env:
Expand All @@ -96,7 +96,7 @@ jobs:
test_pg:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
services:
postgres:
image: postgres
Expand All @@ -112,13 +112,13 @@ jobs:
include:
### RAILS VERSION TESTING
### DONT WORRY ABOUT TESTING ALL RUBY VERSIONS. THIS IS COVERED IN THE SQLITE3 TESTS
- ruby: 2.6
- ruby: "2.6"
gemfile: gemfiles/pg_ar_5.2_pt_12.0.gemfile
- ruby: 2.6
- ruby: "2.6"
gemfile: gemfiles/pg_ar_6.0_pt_12.0.gemfile
- ruby: 2.6
- ruby: "2.6"
gemfile: gemfiles/pg_ar_6.1_pt_12.0.gemfile
- ruby: 3.1
- ruby: "3.2"
gemfile: gemfiles/pg_ar_7.0_pt_12.0.gemfile

env:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ gemfiles/.bundle
pkg/*
spec/dummy/
spec/dummy_app/config/database.yml
spec/dummy_app/db/*.sqlite3
spec/dummy_app/db/*.sqlite3*
spec/dummy_app/log/*
spec/dummy_app/tmp/*
test/debug.log
Expand Down
2 changes: 1 addition & 1 deletion spec/dummy_app/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Application < Rails::Application
config.active_record.sqlite3.represent_boolean_as_integer = true
end

if Rails::VERSION::MAJOR >= 6.1
if Rails::VERSION::MAJOR == 6
config.active_record.legacy_connection_handling = false
end
end
Expand Down

0 comments on commit 97b67da

Please sign in to comment.