Skip to content

Commit ff92e4a

Browse files
committed
Run Checkstyle in workflow
1 parent 09d20ce commit ff92e4a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/checkBuild.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,24 @@ jobs:
6161
name: demo-files-java-${{ matrix.java }}
6262
path: ${{ env.DEMO_MAVEN_MODULE }}/target/${{ env.DEMO_MAVEN_MODULE }}.jar
6363
if-no-files-found: error
64+
65+
code-style:
66+
runs-on: ubuntu-latest
67+
68+
strategy:
69+
matrix:
70+
java: [17]
71+
distribution: [temurin]
72+
73+
steps:
74+
- uses: actions/checkout@v4
75+
76+
- name: Set up JDK
77+
uses: actions/setup-java@v4
78+
with:
79+
distribution: ${{ matrix.distribution }}
80+
java-version: ${{ matrix.java }}
81+
cache: 'maven'
82+
83+
- name: Run Checkstyle
84+
run: mvn -B checkstyle:check -P checkstyle -T2C

0 commit comments

Comments
 (0)