From ae2c97fcc61061bd6a988173cfe3b5302c649526 Mon Sep 17 00:00:00 2001 From: NomadBlacky Date: Wed, 13 Dec 2023 20:11:07 +0900 Subject: [PATCH] chore: Run scalafmt on CI --- .github/workflows/ci.yml | 2 +- build.sbt | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 466782d..f9d8cad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,7 +52,7 @@ jobs: run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck - name: Build project - run: sbt '++ ${{ matrix.scala }}' test + run: sbt '++ ${{ matrix.scala }}' scalafmtSbtCheck scalafmtCheckAll test - name: Compress target directories run: tar cf targets.tar target scalatest-otel-reporter/target examples/manual-configuration/target project/target diff --git a/build.sbt b/build.sbt index 78c7c4b..7d024fd 100644 --- a/build.sbt +++ b/build.sbt @@ -33,6 +33,12 @@ ThisBuild / githubWorkflowPublish := Seq( ), ), ) +ThisBuild / githubWorkflowBuild := Seq( + WorkflowStep.Sbt( + List("scalafmtSbtCheck", "scalafmtCheckAll", "test"), + name = Some("Build project"), + ), +) lazy val root = (project in file(".")) .aggregate(`scalatest-otel-reporter`, `example-manual-configuration`)