Skip to content

chore: add Prettier and Spotless checks, format files #537

chore: add Prettier and Spotless checks, format files

chore: add Prettier and Spotless checks, format files #537

Workflow file for this run

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 }}