Skip to content

Commit b170869

Browse files
ci: run rubocop in a different job
Also only run `rubocop` against `Ruby 3.4`
1 parent 1639034 commit b170869

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,21 @@ name: build
1010
on: push
1111

1212
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
1328
test:
1429
runs-on: ubuntu-20.04
1530
strategy:
@@ -62,4 +77,4 @@ jobs:
6277
with:
6378
ruby-version: ${{ matrix.ruby }}
6479
bundler-cache: true
65-
- run: bundle exec rake
80+
- run: bundle exec rspec

0 commit comments

Comments
 (0)