From d7dad6ef6162a057034297222575e13401233492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edd=C3=BA=20Mel=C3=A9ndez?= Date: Sat, 11 May 2024 16:02:57 +0200 Subject: [PATCH] Add GH workflow to check source code format on PRs --- .../workflows/source-code-format-check.yml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/source-code-format-check.yml diff --git a/.github/workflows/source-code-format-check.yml b/.github/workflows/source-code-format-check.yml new file mode 100644 index 000000000..2143224c3 --- /dev/null +++ b/.github/workflows/source-code-format-check.yml @@ -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