Skip to content

Commit

Permalink
✅ Test different versions of resque and redis
Browse files Browse the repository at this point in the history
Using Appraisal to generate the gemfiles
  • Loading branch information
nevans committed May 15, 2024
1 parent 1327cd2 commit 8b7cc47
Show file tree
Hide file tree
Showing 19 changed files with 241 additions and 135 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,39 @@
name: CI

on: [push, pull_request, workflow_dispatch]
on: [push, workflow_dispatch]

jobs:
build:
name: >-
${{ matrix.os }} ${{ matrix.ruby-version }}
${{ matrix.os }} ${{ matrix.ruby-version }} ${{ matrix.gemfile }}
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os: [ ubuntu-22.04, ubuntu-20.04 ]
ruby-version: [ "2.4", "2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "3.3" ]
gemfile:
- resque_1.22_redis_2.0
- resque_1.23_redis_3.0
- resque_1.24_redis_3.0
- resque_1.25_redis_3.0
- resque_1.27_redis_3.3
- resque_2.0_redis_4.0
- resque_2.1_redis_4.4
- resque_2.2_redis_4.6
- resque_2.3_redis_4.7
- resque_2.4_redis_4.8
- resque_2.5_redis_5.0
- resque_2.6_redis_5.2

services:
redis:
image: redis

env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile

steps:
- uses: actions/checkout@v3
- name: Set up Ruby
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
pkg/*
*.gem
*.gemfile.lock
Gemfile.lock
.bundle
.ruby-version
*.log
*.pid
examples/tmp/*
spec/stdout
tmp/*
vendor
tags
77 changes: 77 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
appraise "resque-1.22-redis-2.0" do
gem "resque", "1.22.0" # 2012-08-21
gem "redis-namespace", "1.0.3" # 2011-05-17
gem "redis", "2.2.2" # 2011-08-04
end

appraise "resque-1.23-redis-2.0" do
gem "resque", "1.23.1" # 2013-03-07
gem "redis-namespace", "1.1.0" # 2011-08-15
gem "redis", "2.2.2" # 2011-08-04
end

appraise "resque-1.24-redis-3.0" do
gem "resque", "1.24.0" # 2013-03-21
gem "redis-namespace", "1.2.2" # 2013-08-03
gem "redis", "3.0.7" # 2014-01-21
end

appraise "resque-1.25-redis-3.0" do
gem "resque", "1.25.2" # 2014-03-04
gem "redis-namespace", "1.4.1" # 2013-12-04
gem "redis", "3.0.7" # 2014-01-21
end

appraise "resque-1.26-redis-3.2" do
gem "resque", "1.26.0" # 2016-03-11
gem "redis-namespace", "1.5.2" # 2015-03-30
gem "redis", "3.2.2" # 2015-11-16
end

appraise "resque-1.27-redis-3.3" do
gem "resque", "1.27.4" # 2017-04-15
gem "redis-namespace", "1.6.0" # 2017-11-03
gem "redis", "3.3.5" # 2017-09-28
end

appraise "resque-2.0-redis-4.0" do
gem "resque", "2.0.0" # 2018-11-06
gem "redis-namespace", "1.6.0" # 2017-11-03
gem "redis", "4.0.3" # 2018-10-31
end

appraise "resque-2.1-redis-4.4" do
gem "resque", "2.1.0" # 2021-08-10
gem "redis-namespace", "1.7.0" # 2019-12-11
gem "redis", "4.4.0" # 2021-07-28
end

appraise "resque-2.2-redis-4.6" do
gem "resque", "2.2.1" # 2022-03-27
gem "redis-namespace", "1.8.2" # 2022-03-07
gem "redis", "4.6.0" # 2024-02-02
end

appraise "resque-2.3-redis-4.7" do
gem "resque", "2.3.0" # 2022-08-22
gem "redis-namespace", "1.9.0" # 2022-08-13
gem "redis", "4.7.1" # 2022-07-01
end

appraise "resque-2.4-redis-4.8" do
gem "resque", "2.4.0" # 2022-09-06
gem "redis-namespace", "1.9.0" # 2022-08-13
gem "redis", "4.8.1" # 2023-02-10
end

appraise "resque-2.5-redis-5.0" do
gem "resque", "2.5.0" # 2023-03-01
gem "redis-namespace", "1.10.0" # 2022-12-22
gem "redis", "5.0.8" # 2023-08-23
end

appraise "resque-2.6-redis-5.2" do
gem "resque", "2.6.0" # 2023-08-19
gem "redis-namespace", "1.11.0" # 2023-06-08
gem "redis", "5.2.0" # 2024-04-15
end
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
source "https://rubygems.org"

gemspec

gem "appraisal"
133 changes: 0 additions & 133 deletions Gemfile.lock

This file was deleted.

10 changes: 10 additions & 0 deletions gemfiles/resque_1.22_redis_2.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "resque", "1.22.0"
gem "redis-namespace", "1.0.3"
gem "redis", "2.2.2"

gemspec path: "../"
10 changes: 10 additions & 0 deletions gemfiles/resque_1.23_redis_2.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "resque", "1.23.1"
gem "redis-namespace", "1.1.0"
gem "redis", "2.2.2"

gemspec path: "../"
10 changes: 10 additions & 0 deletions gemfiles/resque_1.23_redis_3.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "resque", "1.23.1"
gem "redis-namespace", "1.2.2"
gem "redis", "3.0.7"

gemspec path: "../"
10 changes: 10 additions & 0 deletions gemfiles/resque_1.24_redis_3.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "resque", "1.24.0"
gem "redis-namespace", "1.2.2"
gem "redis", "3.0.7"

gemspec path: "../"
10 changes: 10 additions & 0 deletions gemfiles/resque_1.25_redis_3.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "resque", "1.25.2"
gem "redis-namespace", "1.4.1"
gem "redis", "3.0.7"

gemspec path: "../"
10 changes: 10 additions & 0 deletions gemfiles/resque_1.26_redis_3.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "resque", "1.26.0"
gem "redis-namespace", "1.5.2"
gem "redis", "3.2.2"

gemspec path: "../"
10 changes: 10 additions & 0 deletions gemfiles/resque_1.27_redis_3.3.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "resque", "1.27.4"
gem "redis-namespace", "1.6.0"
gem "redis", "3.3.5"

gemspec path: "../"
10 changes: 10 additions & 0 deletions gemfiles/resque_2.0_redis_4.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "resque", "2.0.0"
gem "redis-namespace", "1.6.0"
gem "redis", "4.0.3"

gemspec path: "../"
10 changes: 10 additions & 0 deletions gemfiles/resque_2.1_redis_4.4.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "resque", "2.1.0"
gem "redis-namespace", "1.7.0"
gem "redis", "4.4.0"

gemspec path: "../"
10 changes: 10 additions & 0 deletions gemfiles/resque_2.2_redis_4.6.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "resque", "2.2.1"
gem "redis-namespace", "1.8.2"
gem "redis", "4.6.0"

gemspec path: "../"
10 changes: 10 additions & 0 deletions gemfiles/resque_2.3_redis_4.7.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "resque", "2.3.0"
gem "redis-namespace", "1.9.0"
gem "redis", "4.7.1"

gemspec path: "../"
Loading

0 comments on commit 8b7cc47

Please sign in to comment.