From b4bc65ae2c6d850bfc1ee320fdf2e07c72a7975a 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 883a345d9..6db9dae66 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 51e8e8dfb..6b73f77a0 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(