From 2b8c98fea7333e89c9d66de42534b010b9af12f9 Mon Sep 17 00:00:00 2001 From: Anton Parkhomenko Date: Fri, 18 Sep 2020 17:26:57 +0300 Subject: [PATCH] Common: disable formatting on compile (close #358) --- .github/workflows/test.yml | 3 +++ project/BuildSettings.scala | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4d70e557c..4cc6caaf7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,6 +48,9 @@ jobs: run: sbt coveralls env: COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + - name: Check Scala formatting + if: ${{ always() }} + run: sbt scalafmtCheck scalafmtSbtCheck - name: Check assets can be published if: ${{ always() }} run: sbt publishLocal diff --git a/project/BuildSettings.scala b/project/BuildSettings.scala index 21f92c32b..7a0c51f93 100644 --- a/project/BuildSettings.scala +++ b/project/BuildSettings.scala @@ -82,7 +82,7 @@ object BuildSettings { lazy val formatting = Seq( scalafmtConfig := file(".scalafmt.conf"), - scalafmtOnCompile := true + scalafmtOnCompile := false ) lazy val scoverageSettings = Seq(