This repository was archived by the owner on May 3, 2026. It is now read-only.
Fix compilation issues #1765
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: autofix.ci # needed to securely identify the workflow | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| autofix: | |
| name: Autofix | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Git repository | |
| uses: actions/checkout@v6 | |
| - name: Setup Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: "temurin" | |
| java-version: 21 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| - name: Fix Error Prone issues | |
| run: ./gradlew build | |
| continue-on-error: true | |
| env: | |
| ERRORPRONE_AUTOFIX: 1 | |
| - name: Format with Spotless | |
| run: ./gradlew spotlessApply | |
| continue-on-error: true | |
| - name: Fix Python lint issues with Ruff | |
| uses: astral-sh/ruff-action@v3 | |
| with: | |
| args: "check --fix" | |
| continue-on-error: true | |
| - name: Format Python with Ruff | |
| uses: astral-sh/ruff-action@v3 | |
| with: | |
| args: "format" | |
| continue-on-error: true | |
| - name: Run autofix.ci | |
| uses: autofix-ci/action@v1 |