From 03da292d25eac73e83b91c029c2954197b91757f Mon Sep 17 00:00:00 2001 From: Sai Srinivasan Date: Tue, 18 Jun 2024 19:40:07 -0700 Subject: [PATCH] test against mongodb 6 and 7 remove lock files update changelog and readme update changelog remove mongodb 8 --- .github/workflows/test.yml | 14 ++++++++++++++ CHANGELOG.md | 1 + README.md | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c144e9d..638a561 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -53,6 +53,20 @@ jobs: - { ruby: "3.0", gemfile: 'mongoid_8', mongodb: "5.0" } - { ruby: "3.1", gemfile: 'mongoid_8', mongodb: "5.0" } - { ruby: "3.1", gemfile: 'mongoid_9', mongodb: "5.0" } + - { ruby: "2.6", gemfile: 'mongoid_6', mongodb: "6.0" } + - { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "6.0" } + - { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "6.0" } + - { ruby: "2.7", gemfile: 'mongoid_7', mongodb: "6.0" } + - { ruby: "3.0", gemfile: 'mongoid_8', mongodb: "6.0" } + - { ruby: "3.1", gemfile: 'mongoid_8', mongodb: "6.0" } + - { ruby: "3.1", gemfile: 'mongoid_9', mongodb: "6.0" } + - { ruby: "2.6", gemfile: 'mongoid_6', mongodb: "7.0" } + - { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "7.0" } + - { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "7.0" } + - { ruby: "2.7", gemfile: 'mongoid_7', mongodb: "7.0" } + - { ruby: "3.0", gemfile: 'mongoid_8', mongodb: "7.0" } + - { ruby: "3.1", gemfile: 'mongoid_8', mongodb: "7.0" } + - { ruby: "3.1", gemfile: 'mongoid_9', mongodb: "7.0" } steps: - name: Set up MongoDB ${{ matrix.entry.mongodb }} uses: supercharge/mongodb-github-action@1.8.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 84cd94b..497eba0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ### 1.0.0 (Next) +* [#17](https://github.com/mongoid/mongoid-compatibility/pull/17): Test MongoDB 6 and 7 - [@saisrinivasan](https://github.com/SairamSrinivasan). * [#16](https://github.com/mongoid/mongoid-compatibility/pull/16): Add support for Mongoid 9 - [@saisrinivasan](https://github.com/SairamSrinivasan). * Your contribution here. diff --git a/README.md b/README.md index 978a6d1..f79915c 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Mongoid::Compatibility::Version.mongoid8? # => is this Mongoid 8.x? ``` -Instead of checking for Mongoid 6 and 7 and 8, use `newer` and `older` helpers. +Instead of checking specifically for a specific version, use `newer` and `older` helpers. For example: ``` ruby Mongoid::Compatibility::Version.mongoid6_or_newer?