File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 1
- # pulled from repo
2
- name : " Rubocop "
1
+ # https://github.com/arthurnn/code-scanning-rubocop#action-installation
2
+ name : " RuboCop "
3
3
4
4
on :
5
5
push :
6
6
branches : [ main ]
7
7
pull_request :
8
- # The branches below must be a subset of the branches above
9
8
branches : [ main ]
10
- schedule :
11
- - cron : ' 15 23 * * 6'
12
9
13
10
jobs :
14
11
rubocop :
@@ -20,24 +17,22 @@ jobs:
20
17
- name : Checkout repository
21
18
uses : actions/checkout@v2
22
19
23
- # If running on a self-hosted runner, check it meets the requirements
24
- # listed at https://github.com/ruby/setup-ruby#using-self-hosted-runners
25
20
- name : Set up Ruby
26
21
uses : ruby/setup-ruby@v1
27
22
with :
28
23
ruby-version : 2.6
29
24
30
25
# This step is not necessary if you add the gem to your Gemfile
31
26
- name : Install Code Scanning integration
32
- run : bundle add code-scanning-rubocop --version 0.3.0 -- skip-install
27
+ run : bundle add code-scanning-rubocop --skip-install
33
28
34
29
- name : Install dependencies
35
30
run : bundle install
36
31
37
- - name : Rubocop run
32
+ - name : RuboCop run
38
33
run : |
39
34
bash -c "
40
- bundle exec rubocop --enable-pending-cops -- require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif
35
+ bundle exec rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif
41
36
[[ $? -ne 2 ]]
42
37
"
43
38
Original file line number Diff line number Diff line change 19
19
runs-on : ubuntu-latest
20
20
strategy :
21
21
matrix :
22
- ruby-version : ['2.6', '2.7', '3.0']
22
+ ruby-version : ['2.6', '2.7', '3.0', '3.1' ]
23
23
24
24
steps :
25
25
- uses : actions/checkout@v2
You can’t perform that action at this time.
0 commit comments