Skip to content

Commit

Permalink
chore: add tests for Ruby 3.3 (#314)
Browse files Browse the repository at this point in the history
* tests: Run tests on Ruby 3.3

* tests: require ostruct

It is not part of the stdlib in Ruby 3.3, so we need to require it.

* chore: add more excluded combinations

---------

Co-authored-by: Rafael Mendonça França <[email protected]>
  • Loading branch information
olavloite and rafaelfranca authored Oct 18, 2024
1 parent 8703e6e commit 1c4d08d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/acceptance-tests-on-emulator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
ruby: ["2.7", "3.0", "3.1", "3.2"]
ruby: ["2.7", "3.0", "3.1", "3.2", "3.3"]
ar: ["~> 6.0.6", "~> 6.1.7", "~> 7.0.4", "~> 7.1.0"]
# Exclude combinations that are not supported.
exclude:
Expand All @@ -28,6 +28,8 @@ jobs:
ar: "~> 6.0.6"
- ruby: "3.2"
ar: "~> 6.0.6"
- ruby: "3.3"
ar: "~> 6.0.6"
env:
AR_VERSION: ${{ matrix.ar }}
steps:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
ruby: ["2.7", "3.0", "3.1", "3.2"]
ruby: ["2.7", "3.0", "3.1", "3.2", "3.3"]
ar: ["~> 6.0.6", "~> 6.1.7", "~> 7.0.4", "~> 7.1.0"]
# Exclude combinations that are not supported.
exclude:
Expand All @@ -20,6 +20,8 @@ jobs:
ar: "~> 6.0.6"
- ruby: "3.2"
ar: "~> 6.0.6"
- ruby: "3.3"
ar: "~> 6.0.6"
env:
AR_VERSION: ${{ matrix.ar }}
steps:
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/nightly-acceptance-tests-on-emulator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
max-parallel: 4
matrix:
# Run acceptance tests all supported combinations of Ruby and ActiveRecord.
ruby: [2.7, 3.0, 3.1, 3.2]
ruby: [2.7, 3.0, 3.1, 3.2, 3.3]
ar: [6.0.0, 6.0.1, 6.0.2.2, 6.0.3.7, 6.0.4, 6.1.3.2, 6.1.4.7, 6.1.5.1, 6.1.6.1, 7.0.2.4, 7.0.3.1, 7.0.4, 7.0.5, 7.0.6, 7.0.7, 7.1.0, 7.1.1, 7.1.2]
# Exclude combinations that are not supported.
exclude:
Expand Down Expand Up @@ -53,6 +53,14 @@ jobs:
ar: 6.0.3.7
- ruby: 3.2
ar: 6.0.4
- ruby: 3.3
ar: 6.0.0
- ruby: 3.3
ar: 6.0.1
- ruby: 3.3
ar: 6.0.2.2
- ruby: 3.3
ar: 6.0.3.7
env:
AR_VERSION: ${{ matrix.ar }}
steps:
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/nightly-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
max-parallel: 4
matrix:
# Run unit tests all supported combinations of Ruby and ActiveRecord.
ruby: [2.7, 3.0, 3.1, 3.2]
ruby: [2.7, 3.0, 3.1, 3.2, 3.3]
ar: [6.0.0, 6.0.1, 6.0.2.2, 6.0.3.7, 6.0.4, 6.1.3.2, 6.1.4.7, 6.1.5.1, 6.1.6.1, 7.0.2.4, 7.0.3.1, 7.0.4, 7.0.5, 7.1.0, 7.1.1, 7.1.2]
# Exclude combinations that are not supported.
exclude:
Expand Down Expand Up @@ -45,6 +45,16 @@ jobs:
ar: 6.0.3.7
- ruby: 3.2
ar: 6.0.4
- ruby: 3.3
ar: 6.0.0
- ruby: 3.3
ar: 6.0.1
- ruby: 3.3
ar: 6.0.2.2
- ruby: 3.3
ar: 6.0.3.7
- ruby: 3.3
ar: 6.0.4
env:
AR_VERSION: ${{ matrix.ar }}
steps:
Expand Down

0 comments on commit 1c4d08d

Please sign in to comment.