Fix import order (spotless) #6
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: Debug CI | |
| on: | |
| push: | |
| branches: | |
| - build | |
| jobs: | |
| build: | |
| name: Show formatting diff | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone repo | |
| uses: actions/checkout@v4.2.2 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4.7.0 | |
| with: | |
| java-version: 17 | |
| distribution: temurin | |
| - name: Set up gradle | |
| uses: gradle/actions/setup-gradle@v4.3.0 | |
| - name: Apply spotless and show diff | |
| run: | | |
| ./gradlew spotlessApply --console=plain > /tmp/sa.txt 2>&1 || true | |
| git diff -- '*.kt' > /tmp/diff.txt || true | |
| { | |
| echo "===== FORMAT DIFF =====" | |
| head -250 /tmp/diff.txt | |
| } > /tmp/errs.txt | |
| msg=$(head -120 /tmp/errs.txt | tr '\n' '~') | |
| echo "::error::$msg" | |
| echo "see annotation" |