Skip to content

Commit f007ee9

Browse files
committed
Adding Code Quality workflow
1 parent 50e8d7e commit f007ee9

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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

0 commit comments

Comments
 (0)