diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 678cdf3..4e79af3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: matrix: include: - { ruby: '2.1.9', mongoid: '~> 3.0.0', mongodb: '3.6', bundler: '1.17.3' } - - { ruby: '2.3.8', mongoid: '~> 3.1.0', mongodb: '3.6', bundler: '2.3.26' } + - { ruby: '2.3.8', mongoid: '~> 3.1.0', mongodb: '3.6', bundler: '2.3.26', coverage: true } - { ruby: '2.3.8', mongoid: '4', mongodb: '3.6', bundler: '2.3.26' } - { ruby: '2.3.8', mongoid: '5', mongodb: '4.0', bundler: '2.3.26' } - { ruby: '2.5.9', mongoid: '6', mongodb: '4.0', bundler: default } @@ -23,10 +23,10 @@ jobs: - { ruby: '3.2', mongoid: '8', mongodb: '6.0', bundler: default } - { ruby: '3.3', mongoid: '9', mongodb: '7.0', bundler: default } - { ruby: '3.4', mongoid: '9', mongodb: '8.0', bundler: default } - - { ruby: '4.0', mongoid: '9', mongodb: '8.0', bundler: default } + - { ruby: '4.0', mongoid: '9', mongodb: '8.0', bundler: default, coverage: true } env: MONGOID_VERSION: ${{ matrix.mongoid }} - COVERAGE: ${{ (matrix.mongoid == '~> 3.1.0' || matrix.ruby == '4.0') && 'true' || 'false' }} + COVERAGE: ${{ matrix.coverage }} services: mongodb: image: mongo:${{ matrix.mongodb }} @@ -43,7 +43,7 @@ jobs: bundler-cache: true - run: bundle exec rake spec - name: Report coverage to Coveralls - if: matrix.mongoid == '~> 3.1.0' || matrix.ruby == '4.0' + if: matrix.coverage uses: coverallsapp/github-action@v2 with: github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 88c6af3..3df7ef7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ### 0.9.0 (Next) -* [#68](https://github.com/mongoid/mongoid_fulltext/pull/68): Cover candidate-budget boundaries and standalone version loading, and combine coverage from actual legacy and modern drivers - [@dblock](https://github.com/dblock). +* [#68](https://github.com/mongoid/mongoid_fulltext/pull/68): Cover candidate-budget boundaries and combine coverage from actual legacy and modern drivers - [@dblock](https://github.com/dblock). * [#61](https://github.com/mongoid/mongoid_fulltext/pull/61): Support weighted fields with configurable maximum or summed field-score aggregation - [@dblock](https://github.com/dblock). * [#60](https://github.com/mongoid/mongoid_fulltext/pull/60): Extract ngram calculation and index-definition planning for maintainability without changing model APIs or search behavior - [@tomasc](https://github.com/tomasc), [@dblock](https://github.com/dblock). * [#59](https://github.com/mongoid/mongoid_fulltext/pull/59): Document and cover class-level indexing timeout options - [@dblock](https://github.com/dblock). diff --git a/spec/version_spec.rb b/spec/version_spec.rb index a750f27..c115c1a 100644 --- a/spec/version_spec.rb +++ b/spec/version_spec.rb @@ -1,9 +1,7 @@ require 'spec_helper' describe Mongoid::FullTextSearch do - it 'loads a standalone semantic version' do - stub_const('Mongoid::FullTextSearch', Module.new) - load File.expand_path('../lib/mongoid/full_text_search/version.rb', __dir__) + it 'defines a semantic version' do expect(Mongoid::FullTextSearch::VERSION).to match(/\A\d+\.\d+\.\d+\z/) end end