Skip to content

Commit 78b1dd9

Browse files
committed
Improve rubocop related CI workflows
1 parent afa6e1b commit 78b1dd9

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,18 @@ jobs:
4545
RUBYOPT: --enable-frozen_string_literal
4646
- if: ${{ matrix.ruby == 'head' && startsWith(matrix.os, 'ubuntu') }}
4747
run: bundle exec rake rdoc
48-
- if: ${{ matrix.ruby == 'head' && startsWith(matrix.os, 'ubuntu') }}
49-
run: bundle exec rake rubocop
48+
lint:
49+
runs-on: ubuntu-latest
50+
steps:
51+
- uses: actions/checkout@v4
52+
- name: Set up Ruby
53+
uses: ruby/setup-ruby@v1
54+
with:
55+
ruby-version: "3.3"
56+
bundler-cache: true
57+
- name: Run rubocop
58+
run: bundle exec rubocop
59+
# Just to make sure the format_generated_files task is working
60+
- name: Sanity check for the format_generated_files task
61+
run: |
62+
bundle exec rake generate format_generated_files

0 commit comments

Comments
 (0)