Skip to content

Commit 430aea9

Browse files
committed
Update CI
Add code-inspector Signed-off-by: Bensuperpc <[email protected]>
1 parent cbadc2b commit 430aea9

File tree

2 files changed

+34
-4
lines changed

2 files changed

+34
-4
lines changed

.github/workflows/code-inspector.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: code-inspector
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
paths-ignore:
8+
- '**/README.md'
9+
pull_request:
10+
branches:
11+
- '*'
12+
workflow_dispatch:
13+
14+
jobs:
15+
check-quality:
16+
runs-on: ubuntu-latest
17+
name: A job to check my code quality
18+
steps:
19+
- name: Check code meets quality standards
20+
id: code-inspector
21+
uses: codeinspectorio/github-action@master
22+
with:
23+
repo_token: ${{ secrets.GITHUB_TOKEN }}
24+
code_inspector_access_key: ${{ secrets.CODE_INSPECTOR_ACCESS_KEY }}
25+
code_inspector_secret_key: ${{ secrets.CODE_INSPECTOR_SECRET_KEY }}
26+
min_quality_grade: 'WARNING'
27+
min_quality_score: '50'
28+
max_defects_rate: '0.0001'
29+
max_complex_functions_rate: '0.0001'
30+
max_long_functions_rate: '0.0001'
31+
project_name: ''
32+
max_timeout_sec: '600'

.github/workflows/main.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ name: scripts
33
on:
44
push:
55
branches:
6-
- 'main'
7-
- 'master'
8-
- 'dev'
6+
- '*'
97
paths-ignore:
108
- '**/README.md'
119
pull_request:
@@ -43,4 +41,4 @@ jobs:
4341
- name: "🛠️ build package"
4442
run: sudo make dist
4543
- name: "🛠️ build full package"
46-
run: sudo make dist-full
44+
run: sudo make dist-full

0 commit comments

Comments
 (0)