File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 21
21
distribution : temurin
22
22
java-version : 11
23
23
- uses : gradle/gradle-build-action@v2
24
+ name : build and test
24
25
with :
25
- arguments : check build -PdetektAutoCorrect=false --scan
26
- gradle-version : wrapper
26
+ arguments : check build -x detekt -Pdetekt.multiplatform.disabled=true --scan
27
+ gradle-version : wrapper
27
28
dependency-graph : generate-and-submit
28
29
- name : Upload test reports
29
30
if : ${{ failure() }} # runs only if previous step has failed, the entire workflow will still be marked as failed
36
37
with :
37
38
flags : unittests
38
39
fail_ci_if_error : true # optional (default = false)
40
+
41
+ - uses : gradle/gradle-build-action@v2
42
+ name : run detekt
43
+ with :
44
+ arguments : check -Pdetekt.multiplatform.disabled=false -PdetektAutoCorrect=true
45
+ gradle-version : wrapper
46
+ - run : git status && git diff
47
+ if : ${{ always() }}
48
+ - uses : reviewdog/action-suggester@v1
49
+ # Fixme: run if only the previous step has failed
50
+ if : ${{ failure() }}
51
+ with :
52
+ tool_name : detekt
You can’t perform that action at this time.
0 commit comments