[Feature]: Add Automated Java Code Formatting Check to Backend Workflow #20
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Backend CI | |
| on: | |
| push: | |
| paths: | |
| - "apigateway/**" | |
| - ".github/workflows/backend.yml" | |
| pull_request: | |
| paths: | |
| - "apigateway/**" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: "temurin" | |
| java-version: "21" | |
| cache: "maven" | |
| - name: Check code formatting | |
| working-directory: ./apigateway | |
| run: ./mvnw spotless:check | |
| - name: Build with Maven | |
| working-directory: ./apigateway | |
| run: ./mvnw verify -DskipTests |