File tree Expand file tree Collapse file tree 3 files changed +26
-47
lines changed Expand file tree Collapse file tree 3 files changed +26
-47
lines changed Original file line number Diff line number Diff line change 24
24
run : chmod +x gradlew
25
25
- name : Run automated tests
26
26
run : ./gradlew test -i --no-daemon
27
- - id : file_changes
28
-
29
- - name : Run Code Style Check
30
- run : ./gradlew checkstyleCI -i --no-daemon
31
- env :
32
- MODIFIED_FILES : ${{ steps.file_changes.outputs.files}}
33
- - name : Run PMD Quality Check
34
- run : ./gradlew pmdCI -i --no-daemon
35
- env :
36
- MODIFIED_FILES : ${{ steps.file_changes.outputs.files}}
37
- - name : Run Spotbugs Quality Check
38
- run : ./gradlew spotbugsCI -i --no-daemon
39
- env :
40
- MODIFIED_FILES : ${{ steps.file_changes.outputs.files}}
41
27
42
28
build-windows :
43
29
71
57
- name : Grant execute permission for gradlew
72
58
run : chmod +x gradlew
73
59
- name : Run automated tests
74
- run : ./gradlew test -i --no-daemon
60
+ run : ./gradlew test -i --no-daemon
61
+
62
+ static-tests :
63
+
64
+ runs-on : ubuntu-latest
65
+
66
+ steps :
67
+ - uses : actions/checkout@v2
68
+ - name : Set up JDK 1.8
69
+ uses : actions/setup-java@v1
70
+ with :
71
+ java-version : 1.8
72
+ - name : Gradle wrapper
73
+ run : gradle wrapper
74
+ - name : Grant execute permission for gradlew
75
+ run : chmod +x gradlew
76
+ - id : file_changes
77
+
78
+ - name : Run Code Style Check
79
+ run : ./gradlew checkstyleCI -i --no-daemon
80
+ env :
81
+ MODIFIED_FILES : ${{ steps.file_changes.outputs.files}}
82
+ - name : Run PMD Quality Check
83
+ run : ./gradlew pmdCI -i --no-daemon
84
+ env :
85
+ MODIFIED_FILES : ${{ steps.file_changes.outputs.files}}
Original file line number Diff line number Diff line change @@ -7,11 +7,6 @@ plugins {
7
7
id ' org.jetbrains.intellij' version ' 0.4.15'
8
8
id ' checkstyle'
9
9
id ' pmd'
10
- id " com.github.spotbugs" version " 3.0.0"
11
- }
12
-
13
- ext {
14
- SpotBugsTask = com.github.spotbugs.SpotBugsTask
15
10
}
16
11
17
12
repositories {
Original file line number Diff line number Diff line change 25
25
]
26
26
}
27
27
28
- spotbugs {
29
- ignoreFailures = false
30
- showProgress = true
31
- effort = ' default'
32
- }
33
-
34
28
tasks. withType(Checkstyle ) {
35
29
// Specify all files that should be checked
36
30
classpath = files()
@@ -73,27 +67,6 @@ task pmdCI(type: Pmd) {
73
67
include changedFiles
74
68
}
75
69
76
- tasks. withType(SpotBugsTask ) {
77
- // Specify all files that should be checked
78
- classpath = files()
79
- source " ${ project.rootDir} "
80
-
81
- reports {
82
- xml. enabled false
83
- html. enabled true
84
- }
85
- }
86
-
87
- // Execute SpotBugsTask on all files
88
- task spotbugs (type : SpotBugsTask ) {
89
- }
90
-
91
- // Execute Checkstyle on all modified files
92
- task spotbugsCI (type : SpotBugsTask ) {
93
- def changedFiles = getChangedFiles()
94
- include changedFiles
95
- }
96
-
97
70
/**
98
71
* Get all files that are changed but not deleted nor renamed.
99
72
* Compares to master or the specified target branch.
You can’t perform that action at this time.
0 commit comments