Skip to content

Commit

Permalink
Rename to activerecord since we do not depend on rails as a whole
Browse files Browse the repository at this point in the history
  • Loading branch information
Aqualon committed Aug 15, 2024
1 parent 622be43 commit 209c516
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
matrix:
ruby-version: [3.3.4, 3.2.5, 3.1.6]
redis-version: [4, 5]
rails-version: [6.1.7.8, 7.0.8.4, 7.1.3.4, 7.2.0]
activerecord-version: [6.1.7.8, 7.0.8.4, 7.1.3.4, 7.2.0]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -45,13 +45,13 @@ jobs:
- name: Install gems and run beetle gem tests
run: bundle install && bundle exec rake test
env:
BUNDLE_GEMFILE: gemfiles/redis_${{ matrix.redis-version }}_rails_${{ matrix.rails-version }}.gemfile
BUNDLE_GEMFILE: gemfiles/redis_${{ matrix.redis-version }}_activerecord_${{ matrix.activerecord-version }}.gemfile
MINITEST_REPORTER: SpecReporter

- name: Run beetle failover tests
run: bundle exec cucumber --fail-fast || (tail -n 100 tmp/*.{log,output}; false)
env:
BUNDLE_GEMFILE: gemfiles/redis_${{ matrix.redis-version }}_rails_${{ matrix.rails-version }}.gemfile
BUNDLE_GEMFILE: gemfiles/redis_${{ matrix.redis-version }}_activerecord_${{ matrix.activerecord-version }}.gemfile

- name: Stop services
run: docker compose down
Expand Down
12 changes: 6 additions & 6 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# keep the same versions in .github/workflows/build.yml
rails_versions = [
activerecord_versions = [
"6.1.7.8",
"7.0.8.4",
"7.1.3.4",
"7.2.0"
]
rails_versions.each do |rails_version|
appraise "redis_4_rails_#{rails_version}" do
activerecord_versions.each do |activerecord_version|
appraise "redis_4_activerecord_#{activerecord_version}" do
gem "redis", "~> 4.0"
gem "rails", rails_version
gem "activerecord", activerecord_version
end
appraise "redis_5_rails_#{rails_version}" do
appraise "redis_5_activerecord_#{activerecord_version}" do
gem "redis", "~> 5.0"
gem "hiredis-client"
gem "rails", rails_version
gem "activerecord", activerecord_version
end
end

0 comments on commit 209c516

Please sign in to comment.