This repository was archived by the owner on Nov 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +22
-11
lines changed Expand file tree Collapse file tree 9 files changed +22
-11
lines changed Original file line number Diff line number Diff line change 1
- # This file was generated on 2022-09-09T13:21 :55+01:00 from the rspec-dev repo.
1
+ # This file was generated on 2022-09-09T14:27 :55+01:00 from the rspec-dev repo.
2
2
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
3
3
4
4
name : RSpec CI
22
22
name : Rubocop
23
23
runs-on : ' ubuntu-20.04'
24
24
steps :
25
- - uses : actions/checkout@v2
25
+ - uses : actions/checkout@v3
26
26
- uses : ruby/setup-ruby@v1
27
27
with :
28
28
ruby-version : ' 3.0'
47
47
- 2.3
48
48
env :
49
49
-
50
- RAILS_VERSION : ' ~> 6.1.0 '
50
+ __UNUSED_VARIABLE : " Prevents build error when {matrix.env} is used. "
51
51
include :
52
52
- ruby : ruby-head
53
53
env :
Original file line number Diff line number Diff line change 1
- # This file was generated on 2022-09-09T13:21 :55+01:00 from the rspec-dev repo.
1
+ # This file was generated on 2022-09-09T14:27 :55+01:00 from the rspec-dev repo.
2
2
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
3
3
4
4
# This file contains defaults for RSpec projects. Individual projects
Original file line number Diff line number Diff line change 1
- # This file was generated on 2022-09-09T13:21 :55+01:00 from the rspec-dev repo.
1
+ # This file was generated on 2022-09-09T14:27 :55+01:00 from the rspec-dev repo.
2
2
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
3
3
4
4
# Taken from:
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # This file was generated on 2022-09-09T13:21 :55+01:00 from the rspec-dev repo.
2
+ # This file was generated on 2022-09-09T14:27 :55+01:00 from the rspec-dev repo.
3
3
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
4
4
5
5
set -e
Original file line number Diff line number Diff line change 1
- # This file was generated on 2022-09-09T13:21 :55+01:00 from the rspec-dev repo.
1
+ # This file was generated on 2022-09-09T14:27 :55+01:00 from the rspec-dev repo.
2
2
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
3
3
4
4
SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
@@ -192,6 +192,9 @@ function run_all_spec_suites {
192
192
fold " rspec-expectations specs" run_spec_suite_for " rspec-expectations"
193
193
fold " rspec-mocks specs" run_spec_suite_for " rspec-mocks"
194
194
if rspec_rails_compatible; then
195
+ if ! is_ruby_27_plus; then
196
+ export RAILS_VERSION=' ~> 6.1.0'
197
+ fi
195
198
fold " rspec-rails specs" run_spec_suite_for " rspec-rails"
196
199
fi
197
200
Original file line number Diff line number Diff line change 1
- # This file was generated on 2022-09-09T13:21 :55+01:00 from the rspec-dev repo.
1
+ # This file was generated on 2022-09-09T14:27 :55+01:00 from the rspec-dev repo.
2
2
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
3
3
4
4
function is_mri {
@@ -95,6 +95,14 @@ function is_ruby_25_plus {
95
95
fi
96
96
}
97
97
98
+ function is_ruby_27_plus {
99
+ if ruby -e " exit(RUBY_VERSION.to_f >= 2.7)" ; then
100
+ return 0
101
+ else
102
+ return 1
103
+ fi
104
+ }
105
+
98
106
function is_ruby_31_plus {
99
107
if ruby -e " exit(RUBY_VERSION.to_f >= 3.1)" ; then
100
108
return 0
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # This file was generated on 2022-09-09T13:21 :55+01:00 from the rspec-dev repo.
2
+ # This file was generated on 2022-09-09T14:27 :55+01:00 from the rspec-dev repo.
3
3
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
4
4
5
5
set -e
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # This file was generated on 2022-09-09T13:21 :55+01:00 from the rspec-dev repo.
2
+ # This file was generated on 2022-09-09T14:27 :55+01:00 from the rspec-dev repo.
3
3
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
4
4
5
5
set -e
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # This file was generated on 2022-09-09T13:21 :55+01:00 from the rspec-dev repo.
2
+ # This file was generated on 2022-09-09T14:27 :55+01:00 from the rspec-dev repo.
3
3
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
4
4
5
5
set -e
You can’t perform that action at this time.
0 commit comments