autonomouslogic/dynamo-mapper

View on GitHub
.github/workflows/spotless.yml

Summary

Maintainability
Test Coverage
name: Spotless
on: [ push ]
jobs:
  Formatting:
    timeout-minutes: 30
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Setup Java
        uses: actions/setup-java@v4
        with:
          distribution: adopt
          java-version: 11

      - name: Caches
        uses: actions/cache@v4
        with:
          path: |
            ~/.gradle/caches
            ~/.gradle/wrapper
          key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
          restore-keys: |
            ${{ runner.os }}-gradle-

      - name: Spotless
        run: |
          echo "Run './gradlew spotlessApply' to auto-format"
          ./gradlew spotlessCheck