This repository was archived by the owner on Nov 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +28
-12
lines changed Expand file tree Collapse file tree 8 files changed +28
-12
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-09T10:32:41 +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
22
24
strategy :
23
25
matrix :
24
26
ruby :
25
- - 3.0
27
+ - ' 3.1'
28
+ - ' 3.0'
26
29
- 2.7
27
30
- 2.6
28
31
- 2.5
47
50
continue-on-error : ${{ matrix.allow_failure || endsWith(matrix.ruby, 'head') }}
48
51
env : ${{ matrix.env }}
49
52
steps :
50
- - uses : actions/checkout@v2
53
+ - uses : actions/checkout@v3
51
54
- uses : ruby/setup-ruby@v1
52
55
with :
53
56
bundler : ${{ matrix.bundler || '2.2.22' }}
71
74
- 2.3
72
75
fail-fast : false
73
76
steps :
74
- - uses : actions/checkout@v2
77
+ - uses : actions/checkout@v3
75
78
- uses : ruby/setup-ruby@v1
76
79
with :
77
80
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-09T10:32:41 +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-09T10:32:41 +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-09T10:32:41 +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-09T10:32:41 +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-09T10:32:41 +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_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
108
return 0
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-09T10:32:41 +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 2021-07-15T16:47:05 +01:00 from the rspec-dev repo.
2
+ # This file was generated on 2022-09-09T10:32:41 +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
+ elif is_ruby_23_plus; then
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
16
else
You can’t perform that action at this time.
0 commit comments