From d12d5fc5be0bd634629372c7397949eab720fdea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Kapica?= Date: Sat, 22 Jun 2024 21:34:24 +0200 Subject: [PATCH] Add checking for scalafmt conformance --- .github/workflows/ci.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index da93e36..a3a0612 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -28,6 +28,12 @@ jobs: with: sparse-checkout: 'api' - run: "find ./api -maxdepth 1 -mindepth 1 -exec mv {} . \\; && rm -r ./api" + - name: Check for scalafmt conformance + run: | + curl -fL "https://github.com/VirtusLab/coursier-m1/releases/latest/download/cs-aarch64-pc-linux.gz" | gzip -d > cs + chmod +x cs + cs install scalafmt + ./cs scalafmt --check - name: Setup JDK uses: actions/setup-java@v3 with: