chore: add Prettier and Spotless checks, format files #537
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: Java Build | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, ready_for_review] | |
| env: | |
| AWS_DEFAULT_REGION: us-west-2 | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 11 | |
| distribution: adopt | |
| - name: Prettier | |
| uses: rutajdash/prettier-cli-action@v1.0.2 | |
| with: | |
| file_pattern: "**/*.{md,yml}" | |
| - name: Check formatting | |
| run: mvn spotless:check | |
| - name: Build with Maven | |
| run: mvn --batch-mode --update-snapshots package | |
| - name: Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |