We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rubocop
1 parent 4095d77 commit a8e9bd2Copy full SHA for a8e9bd2
.github/workflows/build.yml
@@ -10,6 +10,21 @@ name: build
10
on: push
11
12
jobs:
13
+ lint:
14
+ runs-on: ubuntu-latest
15
+
16
+ steps:
17
+ - name: Check out repository code
18
+ uses: actions/checkout@v4
19
20
+ - name: Set up Ruby
21
+ uses: ruby/setup-ruby@v1
22
+ with:
23
+ ruby-version: '3.4'
24
+ bundler-cache: true
25
26
+ - name: Lint code for consistent style
27
+ run: bundle exec rubocop -f github
28
test:
29
runs-on: ubuntu-20.04
30
strategy:
@@ -48,8 +63,5 @@ jobs:
48
63
with:
49
64
ruby-version: ${{ matrix.ruby-version }}
50
65
bundler-cache: true
51
- - name: Run rubocop
52
- run: bundle exec rubocop
53
- if: ${{ matrix.ruby-version == '3.3' }}
54
66
- name: Run tests
55
67
run: bundle exec rspec
0 commit comments