Skip to content

Commit 8d42b19

Browse files
committed
CI: Move internal_investigation to linting.yml
Follows rubocop/rubocop#12947 and rubocop/rubocop#12964
1 parent 6ae66df commit 8d42b19

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

.github/workflows/linting.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Linting
22
on:
3-
- pull_request
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
workflow_dispatch:
48

59
permissions: # added using https://github.com/step-security/secure-workflows
610
contents: read
@@ -10,11 +14,23 @@ concurrency:
1014
cancel-in-progress: true
1115

1216
jobs:
13-
yamllint:
17+
lint-ruby:
18+
name: Ruby
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ruby # Latest stable CRuby version
25+
bundler-cache: true
26+
- name: internal_investigation
27+
run: bundle exec rake internal_investigation
28+
29+
lint-yaml:
1430
permissions:
1531
contents: read # for actions/checkout to fetch code
1632
pull-requests: write # for karancode/yamllint-github-action to post comments on PRs
17-
name: Yamllint
33+
name: Yaml
1834
runs-on: ubuntu-latest
1935
steps:
2036
- uses: actions/checkout@v4

.github/workflows/test.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ jobs:
3535
bundler-cache: true
3636
- name: spec
3737
run: bundle exec rake spec
38-
- name: internal_investigation
39-
run: bundle exec rake internal_investigation
4038

4139
jruby:
4240
name: JRuby 9.4
@@ -49,8 +47,6 @@ jobs:
4947
bundler-cache: true
5048
- name: spec
5149
run: bundle exec rake spec
52-
- name: internal_investigation
53-
run: bundle exec rake internal_investigation
5450

5551
prism:
5652
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)