We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 83c19e3 + a8e9bd2 commit 509170eCopy full SHA for 509170e
.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:
@@ -55,8 +70,5 @@ jobs:
55
70
with:
56
71
ruby-version: ${{ matrix.ruby-version }}
57
72
bundler-cache: true
58
- - name: Run rubocop
59
- run: bundle exec rubocop
60
- if: ${{ matrix.ruby-version == '3.3' }}
61
73
- name: Run tests
62
74
run: bundle exec rspec
0 commit comments