Skip to content

Fix import order (spotless) #6

Fix import order (spotless)

Fix import order (spotless) #6

Workflow file for this run

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"