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 +54
-21
lines changed Expand file tree Collapse file tree 9 files changed +54
-21
lines changed Original file line number Diff line number Diff line change 1
- # This file was generated on 2021-07-15T16:47:05 +01:00 from the rspec-dev repo.
1
+ # This file was generated on 2022-09-09T11:59:35 +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
11
11
pull_request :
12
12
branches :
13
13
- ' *'
14
+ permissions :
15
+ contents : read
14
16
env :
15
17
RSPEC_CI : true
16
18
# This tells rspec-rails what branch to run in ci
17
19
RSPEC_VERSION : ' = 4.0.0.pre'
18
20
jobs :
21
+ rubocop :
22
+ name : Rubocop
23
+ runs-on : ' ubuntu-20.04'
24
+ steps :
25
+ - uses : actions/checkout@v2
26
+ - uses : ruby/setup-ruby@v1
27
+ with :
28
+ ruby-version : ' 3.0'
29
+ - run : script/update_rubygems_and_install_bundler
30
+ - run : script/clone_all_rspec_repos
31
+ - run : bundle install --standalone
32
+ - run : bundle binstubs --all
33
+ - run : script/run_rubocop
34
+
19
35
test :
20
36
name : Ruby ${{ matrix.ruby }} ${{ matrix.name_extra || '' }}
21
37
runs-on : ${{ matrix.os || 'ubuntu-20.04' }}
22
38
strategy :
23
39
matrix :
24
40
ruby :
25
- - 3.0
41
+ - ' 3.1'
42
+ - ' 3.0'
26
43
- 2.7
27
44
- 2.6
28
45
- 2.5
47
64
continue-on-error : ${{ matrix.allow_failure || endsWith(matrix.ruby, 'head') }}
48
65
env : ${{ matrix.env }}
49
66
steps :
50
- - uses : actions/checkout@v2
67
+ - uses : actions/checkout@v3
51
68
- uses : ruby/setup-ruby@v1
52
69
with :
53
70
bundler : ${{ matrix.bundler || '2.2.22' }}
71
88
- 2.3
72
89
fail-fast : false
73
90
steps :
74
- - uses : actions/checkout@v2
91
+ - uses : actions/checkout@v3
75
92
- uses : ruby/setup-ruby@v1
76
93
with :
77
94
bundler : ' 2.2.22'
Original file line number Diff line number Diff line change 1
- # This file was generated on 2021-07-15T16:47:05 +01:00 from the rspec-dev repo.
1
+ # This file was generated on 2022-09-09T11:59:35 +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 2021-07-15T16:47:05 +01:00 from the rspec-dev repo.
1
+ # This file was generated on 2022-09-09T11:59:35 +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 2021-07-15T16:47:05 +01:00 from the rspec-dev repo.
2
+ # This file was generated on 2022-09-09T11:59:35 +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 2021-07-15T16:47:05 +01:00 from the rspec-dev repo.
1
+ # This file was generated on 2022-09-09T11:59:35 +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 ) "
Original file line number Diff line number Diff line change 1
- # This file was generated on 2021-07-15T16:47:05 +01:00 from the rspec-dev repo.
1
+ # This file was generated on 2022-09-09T11:59:35 +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 {
@@ -97,7 +97,12 @@ function is_ruby_25_plus {
97
97
98
98
function rspec_rails_compatible {
99
99
if is_ruby_25_plus; then
100
- return 0
100
+ # TODO remove when RSpec-Rails build is 3.1 safe by default
101
+ if is_ruby_31_plus; then
102
+ return 1
103
+ else
104
+ return 0
105
+ fi
101
106
else
102
107
return 1
103
108
fi
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # This file was generated on 2021-07-15T16:47:05 +01:00 from the rspec-dev repo.
2
+ # This file was generated on 2022-09-09T11:59:35 +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
@@ -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-09-09T11:59:35+01: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-15T16:47:05 +01:00 from the rspec-dev repo.
2
+ # This file was generated on 2022-09-09T11:59:35 +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
6
6
source script/functions.sh
7
7
8
- if is_ruby_23_plus; then
8
+ if is_ruby_31_plus; then
9
+ echo " Installing rubygems 3.3.6 / bundler 2.3.6"
10
+ yes | gem update --system ' 3.3.6'
11
+ yes | gem install bundler -v ' 2.3.6'
12
+ else
13
+ echo " Installing rubygems 3.2.22 / bundler 2.2.22"
9
14
yes | gem update --system ' 3.2.22'
10
15
yes | gem install bundler -v ' 2.2.22'
11
- else
12
- echo " Warning installing older versions of Rubygems / Bundler"
13
- gem update --system ' 2.7.8'
14
- gem install bundler -v ' 1.17.3'
15
16
fi
You can’t perform that action at this time.
0 commit comments