File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Code Convention Verification
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - " master"
7
+ - " *-rc"
8
+ pull_request :
9
+ types : [opened, reopened, synchronize]
10
+ branches :
11
+ - " **"
12
+
13
+ jobs :
14
+ checkstyle-and-spotless :
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+
19
+ - name : Setup Java & Gradle
20
+ uses : actions/setup-java@v4
21
+ with :
22
+ java-version : ' 17'
23
+ distribution : ' temurin'
24
+ cache : ' gradle'
25
+
26
+ - uses : actions/cache@v4
27
+ name : Cache Gradle Wrapper
28
+ id : cache-gradle-wrapper
29
+ with :
30
+ path : |
31
+ gradle/wrapper/gradle-wrapper.jar
32
+ key : gradle-wrapper-v1
33
+
34
+ - name : Get Gradle wrapper
35
+ if : steps.cache-gradle-wrapper.outputs.cache-hit != 'true'
36
+ run : |
37
+ ./configure.sh
38
+
39
+ - name : Run Checkstyle
40
+ run : |
41
+ ./gradlew clean rskj-core:checkstyleMain checkstyleTest
42
+
43
+ - name : Run Spotless Check
44
+ run : |
45
+ ./gradlew clean rskj-core:spotlessCheck
You can’t perform that action at this time.
0 commit comments