Skip to content

Commit d7dad6e

Browse files
eddumelendeztzolov
authored andcommitted
Add GH workflow to check source code format on PRs
1 parent cdb80e8 commit d7dad6e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Source Code Format
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
name: Build branch
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout source code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v4
18+
with:
19+
java-version: '17'
20+
distribution: 'temurin'
21+
cache: 'maven'
22+
23+
- name: Source code formatting check
24+
run: |
25+
./mvnw spring-javaformat:validate

0 commit comments

Comments
 (0)