You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# GitHub Action: Run linter onto upfluence ruby project
3
+
4
+
## Release new version
5
+
After pull request was approved and merged into master
6
+
If code can work with old configuration, use same tag as before
7
+
If your code include breaking change change label and inform all upfuence team about your changes.
8
+
9
+
10
+
## Add this acton to your ruby project
11
+
run command into your project directory
12
+
```bash
13
+
mkdir -p .github/workflows
14
+
```
15
+
Create file lint.yml
16
+
```yml
17
+
name: reviewdog
18
+
on: [pull_request]
19
+
20
+
jobs:
21
+
rubocop:
22
+
name: runner / rubocop
23
+
runs-on: ubuntu-latest
24
+
steps:
25
+
- name: Check out code
26
+
uses: actions/checkout@v1
27
+
- name: rubocop
28
+
uses: upfluence/action-rubocop@v1
29
+
with:
30
+
github_token: ${{ secrets.github_token }}
31
+
```
32
+
If you need specific rubocop_extensions, you have to add key rubocop_extensions . By default rubocop_extensions value is 'rubocop-performance:1.5.1 rubocop-minitest'
33
+
#### For example:
34
+
```yml
35
+
name: reviewdog
36
+
on: [pull_request]
37
+
38
+
jobs:
39
+
rubocop:
40
+
name: runner / rubocop
41
+
runs-on: ubuntu-latest
42
+
steps:
43
+
- name: Check out code
44
+
uses: actions/checkout@v1
45
+
- name: rubocop
46
+
uses: upfluence/action-rubocop@v1
47
+
with:
48
+
rubocop_extensions: rubocop-rails
49
+
github_token: ${{ secrets.github_token }}
50
+
51
+
```
52
+
53
+
## Overriding .rubocop.yml
54
+
If you need to override .rubocop.yml provide by this tool, you can create .rubocop.yml into your repository and it will be use by rubocop
0 commit comments