Add predicate manager to lower menu #175
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: Checkstyle CI | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - '**' | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| checkstyle: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Step 1: Checkout the code | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| # Step 2: Set up Java | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: maven | |
| # Step 3: Run Checkstyle (Fail on violations) | |
| - name: Run Checkstyle (Fail on violations) | |
| run: mvn checkstyle:check | |
| working-directory: ./backend | |
| # Step 4: Generate Checkstyle Report | |
| - name: Generate Checkstyle Report | |
| if: always() | |
| run: mvn checkstyle:checkstyle | |
| working-directory: ./backend | |
| # Step 5: Upload Checkstyle Report | |
| - name: Upload Checkstyle Report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: checkstyle-report | |
| path: ${{ github.workspace }}/backend/target/checkstyle/checkstyle-report.xml | |
| retention-days: 15 |