This repository was archived by the owner on Nov 30, 2024. It is now read-only.
File tree 11 files changed +53
-15
lines changed
11 files changed +53
-15
lines changed Original file line number Diff line number Diff line change 1
- # This file was generated on 2021-07-15T10:45:52+01 :00 from the rspec-dev repo.
1
+ # This file was generated on 2022-01-10T22:24:10+00 :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
16
16
# This tells rspec-rails what branch to run in ci
17
17
RSPEC_VERSION : ' = 3.11.0.pre'
18
18
jobs :
19
+ rubocop :
20
+ name : Rubocop
21
+ runs-on : ' ubuntu-20.04'
22
+ steps :
23
+ - uses : actions/checkout@v2
24
+ - uses : ruby/setup-ruby@v1
25
+ with :
26
+ ruby-version : ' 3.0'
27
+ - run : script/update_rubygems_and_install_bundler
28
+ - run : script/clone_all_rspec_repos
29
+ - run : bundle install --standalone
30
+ - run : bundle binstubs --all
31
+ - run : script/run_rubocop
32
+
19
33
test :
20
34
name : Ruby ${{ matrix.ruby }} ${{ matrix.name_extra || '' }}
21
35
runs-on : ${{ matrix.os || 'ubuntu-20.04' }}
22
36
strategy :
23
37
matrix :
24
38
ruby :
39
+ - ' 3.1'
25
40
- ' 3.0'
26
41
- 2.7
27
42
- 2.6
Original file line number Diff line number Diff line change 1
- # This file was generated on 2021-07-15T10:45:52+01 :00 from the rspec-dev repo.
1
+ # This file was generated on 2022-01-10T22:24:10+00 :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 2021-07-15T10:45:52+01 :00 from the rspec-dev repo.
1
+ # This file was generated on 2022-01-10T22:24:10+00 :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 2021-07-15T10:45:52+01 :00 from the rspec-dev repo.
2
+ # This file was generated on 2022-01-10T22:24:10+00 :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 2021-07-15T10:45:52+01 :00 from the rspec-dev repo.
2
+ # This file was generated on 2022-01-10T22:24:10+00 :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 2021-07-15T10:45:52+01 :00 from the rspec-dev repo.
1
+ # This file was generated on 2022-01-10T22:24:10+00 :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 ) "
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # This file was generated on 2021-07-15T10:45:52+01 :00 from the rspec-dev repo.
2
+ # This file was generated on 2022-01-10T22:24:10+00 :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 2021-07-15T10:45:52+01 :00 from the rspec-dev repo.
1
+ # This file was generated on 2022-01-10T22:24:10+00 :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,9 +95,22 @@ function is_ruby_25_plus {
95
95
fi
96
96
}
97
97
98
+ function is_ruby_31_plus {
99
+ if ruby -e " exit(RUBY_VERSION.to_f >= 3.1)" ; then
100
+ return 0
101
+ else
102
+ return 1
103
+ fi
104
+ }
105
+
98
106
function rspec_rails_compatible {
99
107
if is_ruby_25_plus; then
100
- return 0
108
+ # TODO remove when RSpec-Rails build is 3.1 safe by default
109
+ if is_ruby_31_plus; then
110
+ return 1
111
+ else
112
+ return 0
113
+ fi
101
114
else
102
115
return 1
103
116
fi
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # This file was generated on 2021-07-15T10:45:52+01 :00 from the rspec-dev repo.
2
+ # This file was generated on 2022-01-10T22:24:10+00 :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
@@ -24,10 +24,6 @@ if documentation_enforced; then
24
24
fold " doc check" check_documentation_coverage
25
25
fi
26
26
27
- if style_and_lint_enforced; then
28
- fold " rubocop" check_style_and_lint
29
- fi
30
-
31
27
if supports_cross_build_checks; then
32
28
fold " one-by-one specs" run_specs_one_by_one
33
29
export NO_COVERAGE=true
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # This file was generated on 2022-01-10T22:24:10+00:00 from the rspec-dev repo.
3
+ # DO NOT modify it by hand as your changes will get lost the next time it is generated.
4
+
5
+ set -e
6
+ source script/functions.sh
7
+
8
+ # Allow repos to override the default functions and add their own
9
+ if [ -f script/custom_build_functions.sh ]; then
10
+ source script/custom_build_functions.sh
11
+ fi
12
+
13
+
14
+ fold " rubocop" check_style_and_lint
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # This file was generated on 2021-07-15T10:45:52+01 :00 from the rspec-dev repo.
2
+ # This file was generated on 2022-01-10T22:24:10+00 :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