Skip to content

Commit cfc1e03

Browse files
committed
Extract to rubocop job
1 parent eb9bf82 commit cfc1e03

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

.github/workflows/test.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ jobs:
3939
- run: sudo apt-get install -y universal-ctags
4040

4141
- run: bundle exec rake spec
42-
- run: bundle exec rake rubocop
4342

4443
- name: Slack Notification (not success)
4544
uses: act10ns/slack@v2
@@ -50,6 +49,33 @@ jobs:
5049
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
5150
matrix: ${{ toJson(matrix) }}
5251

52+
rubocop:
53+
runs-on: ubuntu-latest
54+
55+
steps:
56+
- uses: actions/checkout@v4
57+
58+
- uses: ruby/setup-ruby@v1
59+
with:
60+
ruby-version: ruby
61+
bundler-cache: true
62+
63+
- name: bundle update
64+
run: |
65+
set -xe
66+
bundle config path vendor/bundle
67+
bundle update --jobs $(nproc) --retry 3
68+
69+
- run: bundle exec rake rubocop
70+
71+
- name: Slack Notification (not success)
72+
uses: act10ns/slack@v2
73+
if: "! success()"
74+
continue-on-error: true
75+
with:
76+
status: ${{ job.status }}
77+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
78+
5379
rbs:
5480
runs-on: ubuntu-latest
5581

@@ -81,6 +107,7 @@ jobs:
81107
notify:
82108
needs:
83109
- test
110+
- rubocop
84111
- rbs
85112

86113
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)