-
Notifications
You must be signed in to change notification settings - Fork 4
57 lines (48 loc) · 1.49 KB
/
code_analytics.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Code Analytics
on:
push:
branches:
- main
- develop
workflow_dispatch:
jobs:
detekt:
runs-on: ubuntu-latest
steps:
- name: "checkout"
uses: actions/checkout@v2
- name: mkdir
run: mkdir reports
- name: "detekt"
uses: natiginfo/[email protected]
with:
args: --max-issues 9999 --report md:reports/detekt.md --auto-correct --parallel --plugins detekt/detekt-formatting-1.21.0.jar # --create-baseline
- name: "add & commit auto correct code"
uses: EndBug/[email protected]
with:
add: core/src
author_name: GitHub
author_email: [email protected]
# branch: master
message: "style: ktlint auto correct style for core module"
github_token: ${{ github.token }}
- name: "add & commit auto correct code"
uses: EndBug/[email protected]
with:
add: http/src
author_name: GitHub
author_email: [email protected]
# branch: master
message: "style: ktlint auto correct style for http module"
github_token: ${{ github.token }}
- name: "upload reports"
uses: actions/[email protected]
with:
name: reports
path: 'reports/*.*'
- name: "output to summary"
run: |
while read line
do
echo "$line" >> $GITHUB_STEP_SUMMARY
done < reports/detekt.md