Skip to content

Commit

Permalink
Adds rails 7.1 to CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
pftg committed Oct 31, 2023
1 parent 8c658e5 commit f44d802
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
pull_request:
branches: [ master ]
paths:
- '*.rb'
- '*.yml'
- '**.rb'
- '**.yml'
- '.github/workflows/lint.yml'
- '!bin/**'

Expand Down
18 changes: 11 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
workflow_dispatch:

env:
BUNDLE_GEMFILE: gemfiles/rails70_gems.rb
BUNDLE_GEMFILE: gemfiles/rails71_gems.rb
DEBIAN_FRONTEND: noninteractive
FERRUM_PROCESS_TIMEOUT: 40
RUBY_YJIT_ENABLE: 1
Expand All @@ -35,7 +35,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
ruby-version: 3.2
bundler-cache: true
- name: Cache Webdrivers
uses: actions/cache@v3
Expand Down Expand Up @@ -137,29 +137,33 @@ jobs:
matrix:
ruby-version: [ 3.2, 3.1, 3.0, jruby ]
gemfile:
- rails71_gems.rb
- rails70_gems.rb
- rails61_gems.rb
experimental: [ false ]
exclude:
# We already tested last version
- ruby-version: 3.2
gemfile: gemfiles/rails70_gems.rb
gemfile: rails71_gems.rb
experimental: false
include:
- ruby-version: 3.2
gemfile: edge_gems.rb
experimental: true
- ruby-version: ruby-head
gemfile: rails70_gems.rb
gemfile: rails71_gems.rb
experimental: true
- ruby-version: 3.3.0-preview2
gemfile: rails71_gems.rb
experimental: true
- ruby-version: jruby-head
gemfile: rails70_gems.rb
gemfile: rails71_gems.rb
experimental: true
- ruby-version: truffleruby
gemfile: rails70_gems.rb
gemfile: rails71_gems.rb
experimental: true
- ruby-version: truffleruby+graalvm
gemfile: rails70_gems.rb
gemfile: rails71_gems.rb
experimental: true

env:
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ task "clobber" do
end

task "test:benchmark" do
require_relative "./scripts/benchmark/find_region_benchmark"
require_relative "scripts/benchmark/find_region_benchmark"
benchmark = Capybara::Screenshot::Diff::Drivers::FindRegionBenchmark.new

puts "For Medium Screen Size: 800x600"
Expand Down
7 changes: 7 additions & 0 deletions gemfiles/rails71_gems.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

gems = "#{File.dirname __dir__}/gems.rb"
eval File.read(gems), binding, gems

gem "actionpack", "~> 7.1", "< 7.2"
gem "capybara", ">= 3.26"

0 comments on commit f44d802

Please sign in to comment.