File tree Expand file tree Collapse file tree 1 file changed +10
-23
lines changed Expand file tree Collapse file tree 1 file changed +10
-23
lines changed Original file line number Diff line number Diff line change 1
1
name : Rubocop
2
2
3
- on : [push, pull_request]
3
+ on :
4
+ push :
5
+ branches-ignore :
6
+ - ' dependabot/**'
7
+ pull_request :
4
8
5
9
permissions :
6
10
contents : read
7
11
8
12
jobs :
9
13
rubocop :
10
14
name : Rubocop
11
- runs-on : ${{ matrix.os }}
15
+ runs-on : ubuntu-latest
12
16
env :
13
17
BUNDLE_JOBS : 4
14
18
BUNDLE_RETRY : 3
15
- strategy :
16
- matrix :
17
- os : [ubuntu-latest]
18
- ruby : [
19
- 2.7
20
- ]
21
-
22
19
steps :
23
20
- uses : actions/checkout@v3
24
- - uses : actions/cache@v3
25
- with :
26
- path : /home/runner/bundle
27
- key : bundle-use-ruby-gems-${{ hashFiles('**/Gemfile.lock') }}
28
- restore-keys : |
29
- bundle-use-ruby-gems-
30
21
31
- - uses : ruby/setup-ruby@v1
22
+ - name : Set up Ruby
23
+ uses : ruby/setup-ruby@v1
32
24
with :
33
- ruby-version : ${{ matrix.ruby }}
34
-
35
- - name : Bundle install
36
- run : |
37
- gem install bundler -v 2.1.4
38
- bundle config path /home/runner/bundle
39
- bundle install
25
+ ruby-version : 2.7
26
+ bundler-cache : true
40
27
41
28
- name : Ruby linter
42
29
run : bundle exec rubocop
You can’t perform that action at this time.
0 commit comments