diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7458c30..30bae1a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,28 +15,9 @@ jobs: fail-fast: false matrix: ruby-version: - - 3.0 - - 3.1 - - 3.2 - active-record-version: - - 6.1.0 - - 7.0.0 - - 7.1.0 - exclude: - - ruby-version: 3.2 - active-record-version: 6.0.0 - - ruby-version: 3.2 - active-record-version: 6.1.0 - - ruby-version: 3.2 - active-record-version: 7.0.0 - - ruby-version: 3.1 - active-record-version: 6.0.0 - - ruby-version: 3.1 - active-record-version: 6.1.0 - - ruby-version: 3.0 - active-record-version: 6.0.0 - env: - ACTIVE_RECORD_VERSION: "${{ matrix.active-record-version }}" + - "3.0" + - "3.1" + - "3.2" steps: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 @@ -44,4 +25,6 @@ jobs: ruby-version: "${{ matrix.ruby-version }}" bundler-cache: true - name: Run tests - run: bundle exec rspec --format documentation + run: | + bundle exec appraisal install + bundle exec appraisal rspec --format documentation diff --git a/.gitignore b/.gitignore index d82e0c1..7eef89c 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,9 @@ build/ Gemfile.lock +# Do not copy generated appraisal Gemfiles +gemfiles/* + # for a library or gem, you might want to ignore these files since the code is # intended to run in multiple environments; otherwise, check them in: # Gemfile.lock diff --git a/Appraisals b/Appraisals new file mode 100644 index 0000000..7a82df6 --- /dev/null +++ b/Appraisals @@ -0,0 +1,14 @@ +appraise "activerecord-6.1" do + gem "activerecord", "~> 6.1.0" + gem "concurrent-ruby", "1.3.4" +end + +appraise "activerecord-7.0" do + gem "activerecord", "~> 7.0.0" + gem "concurrent-ruby", "1.3.4" +end + +appraise "activerecord-7.1" do + gem "activerecord", "~> 7.1.0" + gem "concurrent-ruby" +end diff --git a/Gemfile b/Gemfile index 41793ee..eff579c 100644 --- a/Gemfile +++ b/Gemfile @@ -15,3 +15,7 @@ else end gem "activerecord", ar + +group :development, :test do + gem "appraisal", "2.5.0" +end diff --git a/dev.yml b/dev.yml index 06b7282..60bfd8d 100644 --- a/dev.yml +++ b/dev.yml @@ -8,4 +8,4 @@ setup: commands: test: summary: Run the project's specs - command: bundle exec rspec spec/ + command: bundle exec appraisal rspec spec/ diff --git a/lib/inheritance_integer_type/version.rb b/lib/inheritance_integer_type/version.rb index 17d494e..afb9255 100644 --- a/lib/inheritance_integer_type/version.rb +++ b/lib/inheritance_integer_type/version.rb @@ -1,3 +1,3 @@ module InheritanceIntegerType - VERSION = "0.2.0" + VERSION = "0.2.1" end