Skip to content

Commit

Permalink
Merge pull request #6 from abicky/run-test-regularly
Browse files Browse the repository at this point in the history
Stop supporting EOL versions and run test regularly
  • Loading branch information
abicky authored May 28, 2024
2 parents 245a684 + 3cc3606 commit 34a48b5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: CI
on:
push:
pull_request:
schedule:
- cron: '0 13 * * *'

jobs:
build:
Expand All @@ -13,27 +15,23 @@ jobs:
fail-fast: false
matrix:
ruby-version:
- '2.6'
- '2.7'
- '3.0'
- '3.1'
- '3.2'
- '3.3'
- '3'
activerecord-version:
- '6_0'
- '6_1'
- '7_0'
- '7_1'
exclude:
# activerecord-7 doesn't support Ruby 2.6
- ruby-version: '2.6'
activerecord-version: '7_0'
- ruby-version: '2.6'
activerecord-version: '7_1'
- 'latest'
mysql-version:
- '5.7'
- '8.0'

services:
mysql:
image: mysql:5.7
image: mysql:${{ matrix.mysql-version }}
ports:
- 3306:3306
options: >-
Expand All @@ -55,10 +53,8 @@ jobs:
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Build and test with Rake
- name: Run tests
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
bundle exec rake
env:
MYSQL_HOST: 127.0.0.1
Expand Down
4 changes: 2 additions & 2 deletions activerecord-debug_errors.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
spec.description = %q{ActiveRecord::DebugErrors is an extension of activerecord to display useful debug logs on errors.}
spec.homepage = "https://github.com/abicky/activerecord-debug_errors"
spec.license = "MIT"
spec.required_ruby_version = Gem::Requirement.new(">= 2.6.0")
spec.required_ruby_version = Gem::Requirement.new(">= 3.0.0")

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
Expand All @@ -22,5 +22,5 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_runtime_dependency "activerecord", ">= 6", "< 8"
spec.add_runtime_dependency "activerecord", ">= 6.1"
end
1 change: 1 addition & 0 deletions gemfiles/activerecord_latest.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
eval_gemfile("../Gemfile")

0 comments on commit 34a48b5

Please sign in to comment.