Add GH workflow to check source code format on PRs
This commit is contained in:
committed by
Christian Tzolov
parent
cdb80e83e9
commit
d7dad6ef61
25
.github/workflows/source-code-format-check.yml
vendored
Normal file
25
.github/workflows/source-code-format-check.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Source Code Format
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build branch
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
cache: 'maven'
|
||||
|
||||
- name: Source code formatting check
|
||||
run: |
|
||||
./mvnw spring-javaformat:validate
|
||||
Reference in New Issue
Block a user