File tree Expand file tree Collapse file tree 5 files changed +29
-12
lines changed Expand file tree Collapse file tree 5 files changed +29
-12
lines changed Original file line number Diff line number Diff line change 9
9
branches :
10
10
- ' *'
11
11
jobs :
12
+ rubocop :
13
+ name : Rubocop
14
+ runs-on : ' ubuntu-20.04'
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - uses : ruby/setup-ruby@v1
18
+ with :
19
+ ruby-version : ' 3.0'
20
+ - run : script/update_rubygems_and_install_bundler
21
+ - run : bundle install --standalone
22
+ - run : bundle binstubs --all
23
+ - run : script/run_rubocop
24
+
12
25
test :
13
26
name : ' Ruby: ${{ matrix.ruby }}, Rails: ${{ matrix.env.RAILS_VERSION }}'
14
27
runs-on : ubuntu-20.04
Original file line number Diff line number Diff line change 5
5
Exclude :
6
6
# Templates are really ERB which Rubocop does not parse
7
7
- bin/**/*
8
+ - bundle/**/*
8
9
- lib/generators/rspec/*/templates/**/*
10
+ - tmp/**/*
9
11
10
12
Bundler/DuplicatedGem :
11
13
Enabled : false
Original file line number Diff line number Diff line change @@ -97,11 +97,3 @@ function documentation_enforced {
97
97
return 1
98
98
fi
99
99
}
100
-
101
- function style_and_lint_enforced {
102
- if [ -x ./bin/rubocop ]; then
103
- return 0
104
- else
105
- return 1
106
- fi
107
- }
Original file line number Diff line number Diff line change @@ -26,10 +26,6 @@ if documentation_enforced; then
26
26
fold " doc check" check_documentation_coverage
27
27
fi
28
28
29
- if style_and_lint_enforced; then
30
- fold " rubocop" check_style_and_lint
31
- fi
32
-
33
29
if is_mri; then
34
30
fold " one-by-one specs" run_specs_one_by_one
35
31
run_all_spec_suites
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
You can’t perform that action at this time.
0 commit comments