-
Notifications
You must be signed in to change notification settings - Fork 1.4k
40 lines (36 loc) · 982 Bytes
/
Copy pathrubocop.yml
File metadata and controls
40 lines (36 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: RuboCop Security & Performance Check
on:
push:
paths-ignore:
- '*.md'
- 'lib/fluent/version.rb'
pull_request:
paths-ignore:
- '*.md'
- 'lib/fluent/version.rb'
workflow_dispatch:
concurrency:
group: ${{ github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true
permissions: read-all
jobs:
rubocop:
runs-on: ubuntu-latest
continue-on-error: false
strategy:
fail-fast: false
matrix:
ruby-version: ['4.0']
name: Ruby ${{ matrix.ruby-version }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Ruby
uses: ruby/setup-ruby@14594264cd68ce8a2345dd349bc3d138a4ef85c8 # v1.327.0
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: |
bundle install
gem install rubocop-performance
- name: Run RuboCop
run: rubocop