Skip to content

Commit 137c35d

Browse files
authored
Trash deprecated ruby/rails version, add support for cucumber 8 (#96)
* Trash deprecated ruby/rails version, add support for cucumber 8, clean up Gemfile * default value for local setup * Update History/Changelog file
1 parent 1be9bc1 commit 137c35d

24 files changed

Lines changed: 22 additions & 498 deletions

.github/workflows/build.yml

Lines changed: 6 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -15,88 +15,14 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
ruby:
19-
- '3.1'
20-
- '3.0'
21-
- 2.7
22-
- 2.6
23-
- 2.5
24-
gemfile:
25-
# Cucumber 3.2+
26-
- Gemfile-rails.4.2.x
27-
- Gemfile-rails.5.0.x
28-
- Gemfile-rails.5.1.x
29-
- Gemfile-rails.5.2.x
30-
- Gemfile-rails.6.0.x-cukes-3
31-
- Gemfile-rails.6.1.x-cukes-3
32-
# Cucumber 4.1+
33-
- Gemfile-rails.5.2.x-cukes-4
34-
- Gemfile-rails.6.0.x-cukes-4
35-
# Cucumber 5.3+
36-
- Gemfile-rails.5.2.x-cukes-5
37-
- Gemfile-rails.6.0.x-cukes-5
38-
- Gemfile-rails.6.1.x-cukes-5
39-
# Cucumber 6
40-
- Gemfile-rails.6.0.x-cukes-6
41-
- Gemfile-rails.6.1.x-cukes-6
42-
- Gemfile-rails.7.0.x-cukes-6
43-
# Cucumber 7
44-
- Gemfile-rails.6.0.x-cukes-7
45-
- Gemfile-rails.6.1.x-cukes-7
46-
- Gemfile-rails.7.0.x-cukes-7
47-
# Edge
48-
- Gemfile-rails.edge
49-
exclude:
50-
# Rails edge is now 7.x and requires ruby 2.7
51-
- gemfile: Gemfile-rails.edge
52-
ruby: 2.6
53-
- gemfile: Gemfile-rails.edge
54-
ruby: 2.5
55-
- gemfile: Gemfile-rails.7.0.x-cukes-7
56-
ruby: 2.6
57-
- gemfile: Gemfile-rails.7.0.x-cukes-7
58-
ruby: 2.5
59-
- gemfile: Gemfile-rails.7.0.x-cukes-6
60-
ruby: 2.6
61-
- gemfile: Gemfile-rails.7.0.x-cukes-6
62-
ruby: 2.5
63-
- gemfile: Gemfile-rails.4.2.x
64-
ruby: 2.7
65-
- gemfile: Gemfile-rails.4.2.x
66-
ruby: '3.0'
67-
- gemfile: Gemfile-rails.4.2.x
68-
ruby: '3.1'
69-
- gemfile: Gemfile-rails.5.0.x
70-
ruby: '3.1'
71-
- gemfile: Gemfile-rails.5.1.x
72-
ruby: '3.1'
73-
- gemfile: Gemfile-rails.5.2.x
74-
ruby: '3.1'
75-
- gemfile: Gemfile-rails.6.0.x-cukes-3
76-
ruby: '3.1'
77-
- gemfile: Gemfile-rails.6.1.x-cukes-3
78-
ruby: '3.1'
79-
- gemfile: Gemfile-rails.5.2.x-cukes-4
80-
ruby: '3.1'
81-
- gemfile: Gemfile-rails.6.0.x-cukes-4
82-
ruby: '3.1'
83-
- gemfile: Gemfile-rails.5.2.x-cukes-5
84-
ruby: '3.1'
85-
- gemfile: Gemfile-rails.6.0.x-cukes-5
86-
ruby: '3.1'
87-
- gemfile: Gemfile-rails.6.1.x-cukes-5
88-
ruby: '3.1'
89-
- gemfile: Gemfile-rails.6.0.x-cukes-6
90-
ruby: '3.1'
91-
- gemfile: Gemfile-rails.6.1.x-cukes-6
92-
ruby: '3.1'
93-
- gemfile: Gemfile-rails.6.0.x-cukes-7
94-
ruby: '3.1'
95-
- gemfile: Gemfile-rails.6.1.x-cukes-7
96-
ruby: '3.1'
18+
rails: ["7.0", "6.1", "6.0"]
19+
ruby: ["3.2.2", "3.1.4", "3.0.6", "2.7.8"]
20+
cucumber: ["8.0", "7.0", "6.0", "5.0", "4.0", "3.0"]
9721

9822
env:
99-
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}
23+
RUBY_VERSION: ${{ matrix.ruby }}
24+
RAILS_VERSION: ${{ matrix.rails }}
25+
CUKES_VERSION: ${{ matrix.cucumber }}
10026
steps:
10127
- uses: actions/checkout@v2
10228
- uses: ruby/setup-ruby@v1
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
source "https://rubygems.org"
22

3-
# Bundler 1.x default to insecure http:// for github: shortcut
43
git_source(:github){ |repo_name| "https://github.com/#{repo_name}.git" }
54

6-
gemspec :path => ".."
5+
gemspec :path => "."
76

8-
gem "rails", "~> 5.2.0"
9-
gem "cucumber", "~> 5.0"
7+
# use ENV vars, with default value as fallback for local setup
8+
ruby (ENV['RUBY_VERSION'] || '3.2.2')
9+
gem "rails", "~> #{ENV['RAILS_VERSION'] || '7.0'}.0"
10+
gem "cucumber", "~> #{ENV['CUKES_VERSION'] || '7.0'}"
1011
gem "cucumber-rails"
1112
gem 'fabrication', github: 'mathieujobin/fabrication', ref: '923cf6fcefd0566b1d6be7bd2f685b89388f4800'

History.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
== 0.8.0
2+
* Added support for Cucumber 8.x
3+
* Removed support for Rails 4.2 -> 5.2
4+
* Removed support for Ruby 2.0 -> 2.6
5+
* Clean up Gemfiles, testing Ruby 2.7 -> 3.2 and Rails 6.0 -> 7.0
6+
* Cucumber 3.x -> 8.x remain supported.
7+
18
== 0.7.2
29
* Eliminate noisy warning: =~ called on anything but String objects.
310

gemfiles/Gemfile-rails.4.2.x

Lines changed: 0 additions & 13 deletions
This file was deleted.

gemfiles/Gemfile-rails.4.2.x.lock

Lines changed: 0 additions & 216 deletions
This file was deleted.

gemfiles/Gemfile-rails.5.0.x

Lines changed: 0 additions & 12 deletions
This file was deleted.

gemfiles/Gemfile-rails.5.1.x

Lines changed: 0 additions & 10 deletions
This file was deleted.

gemfiles/Gemfile-rails.5.2.x

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)