Run scheduled checks: gradle/groovy formatting #4
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: "Run scheduled checks: gradle/groovy formatting" | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| # 3:13 on Mondays | |
| - cron: '13 4 * * 1' | |
| permissions: {} | |
| env: | |
| DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} | |
| jobs: | |
| test: | |
| name: Check groovy/gradle script formatting compliance | |
| timeout-minutes: 15 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Configure tools | |
| uses: ./.github/actions/prepare-for-build | |
| - name: Run formatter check | |
| run: > | |
| ./gradlew | |
| -Plucene.spotlessGradleScripts=true | |
| spotlessGradleScriptsCheck |