Skip to content

Commit

Permalink
Change strategy for test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
a-maas committed Mar 21, 2024
1 parent 70e07b9 commit 7ec7915
Show file tree
Hide file tree
Showing 13 changed files with 126 additions and 878 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,17 @@ jobs:
matrix:
ruby: ["2.5", "2.7", "3.0", "3.1", "3.2"]
gemfile:
- rails_5_2
- rails_6
- rails_6_1
- rails_7
- rails_7_1
- circuitbox_1
- circuitbox_2
exclude:
- ruby: "3.2"
gemfile: "rails_6"
- ruby: "3.2"
gemfile: "rails_5_2"
- ruby: "3.1"
gemfile: "rails_6"
gemfile: "circuitbox_1"
- ruby: "3.1"
gemfile: "rails_5_2"
gemfile: "circuitbox_1"
- ruby: "3.0"
gemfile: "rails_6"
- ruby: "3.0"
gemfile: "rails_5_2"
- ruby: "2.7"
gemfile: "rails_5_2"
- ruby: "2.5"
gemfile: "rails_7_1"
gemfile: "circuitbox_1"
- ruby: "2.5"
gemfile: "rails_7"
gemfile: "circuitbox_2"

runs-on: ubuntu-22.04
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
Expand All @@ -45,7 +32,7 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
cache-version: 2
cache-version: 3
# Add or replace test runners here
- name: Run tests
run: bin/rake test
25 changes: 4 additions & 21 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
appraise "rails-5-2" do
gem "rails", "~> 5.2.8.1"
gem "nokogiri", "1.12.5"
appraise "circuitbox-1" do
gem "circuitbox", "~> 1.1.1"
end

appraise "rails-6" do
gem "rails", "~> 6.0.6.1"
gem "nokogiri", "1.12.5"
end

appraise "rails-6-1" do
gem "rails", "~> 6.1.7.7"
gem "nokogiri", "1.12.5"
end

appraise "rails-7" do
gem "rails", "~> 7.0.8.1"
gem "nokogiri", "1.15.6"
end

appraise "rails-7-1" do
gem "rails", "~> 7.1.3.2"
gem "nokogiri", "1.15.6"
appraise "circuitbox-2" do
gem "circuitbox", "~> 2.0.0"
end
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
gemspec

group :test do
gem "akami", "1.2"
gem "minitest", "5.15.0"
gem 'minitest-ci', require: false
gem 'simplecov', '< 0.18', require: false
end
5 changes: 1 addition & 4 deletions gemfiles/rails_5_2.gemfile → gemfiles/circuitbox_1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@

source "https://rubygems.org"

gem "rails", "~> 5.2.8.1"
gem "nokogiri", "1.12.5"
gem "circuitbox", "~> 1.1.1"

group :test do
gem "akami", "1.2"
gem "minitest", "5.15.0"
gem "minitest-ci", require: false
gem "simplecov", "< 0.18", require: false
end
Expand Down
179 changes: 104 additions & 75 deletions gemfiles/rails_7.gemfile.lock → gemfiles/circuitbox_1.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,70 +8,79 @@ PATH
GEM
remote: https://rubygems.org/
specs:
actioncable (7.0.8.1)
actionpack (= 7.0.8.1)
activesupport (= 7.0.8.1)
actioncable (7.1.3.2)
actionpack (= 7.1.3.2)
activesupport (= 7.1.3.2)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailbox (7.0.8.1)
actionpack (= 7.0.8.1)
activejob (= 7.0.8.1)
activerecord (= 7.0.8.1)
activestorage (= 7.0.8.1)
activesupport (= 7.0.8.1)
zeitwerk (~> 2.6)
actionmailbox (7.1.3.2)
actionpack (= 7.1.3.2)
activejob (= 7.1.3.2)
activerecord (= 7.1.3.2)
activestorage (= 7.1.3.2)
activesupport (= 7.1.3.2)
mail (>= 2.7.1)
net-imap
net-pop
net-smtp
actionmailer (7.0.8.1)
actionpack (= 7.0.8.1)
actionview (= 7.0.8.1)
activejob (= 7.0.8.1)
activesupport (= 7.0.8.1)
actionmailer (7.1.3.2)
actionpack (= 7.1.3.2)
actionview (= 7.1.3.2)
activejob (= 7.1.3.2)
activesupport (= 7.1.3.2)
mail (~> 2.5, >= 2.5.4)
net-imap
net-pop
net-smtp
rails-dom-testing (~> 2.0)
actionpack (7.0.8.1)
actionview (= 7.0.8.1)
activesupport (= 7.0.8.1)
rack (~> 2.0, >= 2.2.4)
rails-dom-testing (~> 2.2)
actionpack (7.1.3.2)
actionview (= 7.1.3.2)
activesupport (= 7.1.3.2)
nokogiri (>= 1.8.5)
racc
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
actiontext (7.0.8.1)
actionpack (= 7.0.8.1)
activerecord (= 7.0.8.1)
activestorage (= 7.0.8.1)
activesupport (= 7.0.8.1)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
actiontext (7.1.3.2)
actionpack (= 7.1.3.2)
activerecord (= 7.1.3.2)
activestorage (= 7.1.3.2)
activesupport (= 7.1.3.2)
globalid (>= 0.6.0)
nokogiri (>= 1.8.5)
actionview (7.0.8.1)
activesupport (= 7.0.8.1)
actionview (7.1.3.2)
activesupport (= 7.1.3.2)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
activejob (7.0.8.1)
activesupport (= 7.0.8.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activejob (7.1.3.2)
activesupport (= 7.1.3.2)
globalid (>= 0.3.6)
activemodel (7.0.8.1)
activesupport (= 7.0.8.1)
activerecord (7.0.8.1)
activemodel (= 7.0.8.1)
activesupport (= 7.0.8.1)
activestorage (7.0.8.1)
actionpack (= 7.0.8.1)
activejob (= 7.0.8.1)
activerecord (= 7.0.8.1)
activesupport (= 7.0.8.1)
activemodel (7.1.3.2)
activesupport (= 7.1.3.2)
activerecord (7.1.3.2)
activemodel (= 7.1.3.2)
activesupport (= 7.1.3.2)
timeout (>= 0.4.0)
activestorage (7.1.3.2)
actionpack (= 7.1.3.2)
activejob (= 7.1.3.2)
activerecord (= 7.1.3.2)
activesupport (= 7.1.3.2)
marcel (~> 1.0)
mini_mime (>= 1.1.0)
activesupport (7.0.8.1)
activesupport (7.1.3.2)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
Expand All @@ -87,15 +96,19 @@ GEM
bigdecimal (3.1.7)
builder (3.2.4)
byebug (11.1.3)
circuitbox (2.0.0)
circuitbox (1.1.1)
activesupport
moneta
concurrent-ruby (1.2.3)
connection_pool (2.4.1)
crack (1.0.0)
bigdecimal
rexml
crass (1.0.6)
date (3.3.4)
docile (1.4.0)
dotenv (3.1.0)
drb (2.2.1)
erubi (1.12.0)
faraday (2.9.0)
faraday-net_http (>= 2.0, < 3.2)
Expand All @@ -114,6 +127,10 @@ GEM
rack (>= 2.0, < 3.1)
i18n (1.14.4)
concurrent-ruby (~> 1.0)
io-console (0.7.2)
irb (1.12.0)
rdoc
reline (>= 0.4.2)
json (2.7.1)
loofah (2.22.0)
crass (~> 1.0.2)
Expand All @@ -124,13 +141,13 @@ GEM
net-pop
net-smtp
marcel (1.0.4)
method_source (1.0.0)
mini_mime (1.1.5)
minitest (5.15.0)
minitest-ci (3.4.0)
minitest (>= 5.0.6)
mocha (2.1.0)
ruby2_keywords (>= 0.0.5)
moneta (1.6.0)
mutex_m (0.2.0)
net-http (0.4.1)
uri
Expand All @@ -143,48 +160,60 @@ GEM
timeout
net-smtp (0.4.0.1)
net-protocol
nio4r (2.7.0)
nio4r (2.7.1)
nkf (0.2.0)
nokogiri (1.15.6-arm64-darwin)
nokogiri (1.16.3-arm64-darwin)
racc (~> 1.4)
nokogiri (1.15.6-x86_64-linux)
nokogiri (1.16.3-x86_64-linux)
racc (~> 1.4)
nori (2.7.0)
bigdecimal
psych (5.1.2)
stringio
public_suffix (5.0.4)
racc (1.7.3)
rack (2.2.8.1)
rack (3.0.10)
rack-session (2.0.0)
rack (>= 3.0.0)
rack-test (2.1.0)
rack (>= 1.3)
rails (7.0.8.1)
actioncable (= 7.0.8.1)
actionmailbox (= 7.0.8.1)
actionmailer (= 7.0.8.1)
actionpack (= 7.0.8.1)
actiontext (= 7.0.8.1)
actionview (= 7.0.8.1)
activejob (= 7.0.8.1)
activemodel (= 7.0.8.1)
activerecord (= 7.0.8.1)
activestorage (= 7.0.8.1)
activesupport (= 7.0.8.1)
rackup (2.1.0)
rack (>= 3)
webrick (~> 1.8)
rails (7.1.3.2)
actioncable (= 7.1.3.2)
actionmailbox (= 7.1.3.2)
actionmailer (= 7.1.3.2)
actionpack (= 7.1.3.2)
actiontext (= 7.1.3.2)
actionview (= 7.1.3.2)
activejob (= 7.1.3.2)
activemodel (= 7.1.3.2)
activerecord (= 7.1.3.2)
activestorage (= 7.1.3.2)
activesupport (= 7.1.3.2)
bundler (>= 1.15.0)
railties (= 7.0.8.1)
railties (= 7.1.3.2)
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
railties (7.0.8.1)
actionpack (= 7.0.8.1)
activesupport (= 7.0.8.1)
method_source
railties (7.1.3.2)
actionpack (= 7.1.3.2)
activesupport (= 7.1.3.2)
irb
rackup (>= 1.0.0)
rake (>= 12.2)
thor (~> 1.0)
zeitwerk (~> 2.5)
thor (~> 1.0, >= 1.2.2)
zeitwerk (~> 2.6)
rake (13.1.0)
rdoc (6.6.3.1)
psych (>= 4.0.0)
reline (0.4.3)
io-console (~> 0.5)
rexml (3.2.6)
ruby2_keywords (0.0.5)
savon (2.15.0)
Expand All @@ -201,6 +230,7 @@ GEM
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
stringio (3.1.0)
thor (1.3.1)
timeout (0.4.1)
tzinfo (2.0.6)
Expand All @@ -215,6 +245,7 @@ GEM
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
webrick (1.8.1)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
Expand All @@ -225,18 +256,16 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
akami (= 1.2)
appraisal
awesome_print
bundler
byebug
circuitbox
circuitbox (~> 1.1.1)
dotenv
minitest (= 5.15.0)
minitest (~> 5.0)
minitest-ci
mocha
nokogiri (= 1.15.6)
rails (~> 7.0.8.1)
rails
rake
simplecov (< 0.18)
vcr
Expand Down
Loading

0 comments on commit 7ec7915

Please sign in to comment.