From 6980dd91acbca1a5739d09019704b0fa2c9fe6b1 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 e5ca6d717..266d70251 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 - name: Check assets can be published if: ${{ always() }} run: sbt publishLocal diff --git a/project/BuildSettings.scala b/project/BuildSettings.scala index a8340d6cb..4f412acf6 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(