File tree Expand file tree Collapse file tree 4 files changed +20
-21
lines changed Expand file tree Collapse file tree 4 files changed +20
-21
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ jobs:
15
15
name : RuboCop
16
16
runs-on : ubuntu-latest
17
17
steps :
18
- - uses : actions/checkout@v2
18
+ - uses : actions/checkout@v4
19
19
- uses : ruby/setup-ruby@v1
20
20
with :
21
- ruby-version : " 3.1 "
21
+ ruby-version : " 3.4 "
22
22
bundler-cache : true
23
23
- name : Lint Ruby code with RuboCop
24
24
run : |
Original file line number Diff line number Diff line change @@ -14,36 +14,34 @@ jobs:
14
14
# Skip running tests for local pull requests (use push event instead), run only for foreign ones
15
15
if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login
16
16
runs-on : ubuntu-latest
17
+ continue-on-error : ${{ matrix.optional || false }}
17
18
strategy :
18
19
fail-fast : false
19
20
matrix :
20
21
include :
21
- - ruby : " 3.2 "
22
+ - ruby : " head "
22
23
rails : " HEAD"
24
+ optional : true
25
+ - ruby : " 3.4"
26
+ rails : " 8.0"
27
+ - ruby : " 3.3"
28
+ rails : " 7.2"
29
+ - ruby : " 3.2"
30
+ rails : " 7.1"
23
31
- ruby : " 3.1"
24
32
rails : " 7.0"
25
33
- ruby : " 3.0"
26
34
rails : " 6.1"
27
35
- ruby : " 2.7"
28
36
rails : " 6.0"
29
- container :
30
- image : ruby:${{ matrix.ruby }}
31
- env :
32
- CI : true
33
- RAILS_VERSION : ${{ matrix.rails }}
37
+ env :
38
+ CI : true
39
+ RAILS_VERSION : ${{ matrix.rails }}
34
40
steps :
35
- - uses : actions/checkout@v2
36
- - uses : actions/cache@v2
41
+ - uses : actions/checkout@v4
42
+ - uses : ruby/setup-ruby@v1
37
43
with :
38
- path : vendor/bundle
39
- key : bundle-${{ matrix.ruby }}-${{ hashFiles('**/*.gemspec') }}-${{ hashFiles('**/Gemfile') }}
40
- restore-keys : |
41
- bundle-${{ matrix.ruby }}-${{ hashFiles('**/*.gemspec') }}-${{ hashFiles('**/Gemfile') }}
42
- bundle-${{ matrix.ruby }}-
43
- - name : Bundle install
44
- run : |
45
- bundle config path vendor/bundle
46
- bundle install
47
- bundle update
44
+ ruby-version : ${{ matrix.ruby }}
45
+ bundler-cache : true
48
46
- name : Run RSpec
49
47
run : bundle exec rspec
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
7
7
# Specify your gem's dependencies in yabeda-rails.gemspec
8
8
gemspec
9
9
10
- rails_version = ENV . fetch ( "RAILS_VERSION" , "~> 7 .0" )
10
+ rails_version = ENV . fetch ( "RAILS_VERSION" , "~> 8 .0" )
11
11
case rails_version
12
12
when "HEAD"
13
13
git "https://github.com/rails/rails.git" do
Original file line number Diff line number Diff line change 3
3
ENV [ "RAILS_ENV" ] = "test"
4
4
5
5
require "bundler/setup"
6
+ require "logger"
6
7
require "debug"
7
8
require "yabeda/rails"
8
9
require "yabeda/rspec"
You can’t perform that action at this time.
0 commit comments