-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworkflows.sbt
36 lines (29 loc) · 858 Bytes
/
workflows.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import sbtghactions.WorkflowStep.Sbt
ThisBuild / githubWorkflowJavaVersions :=
JavaSpec.temurin("17") ::
JavaSpec.temurin("22") ::
Nil
ThisBuild / githubWorkflowPublishTargetBranches := Nil
ThisBuild / githubWorkflowOSes :=
"ubuntu-latest" ::
// "macos-latest" ::
// "windows-latest" ::
Nil
ThisBuild / githubWorkflowBuildPreamble ++= {
val unusedCompileDependencies = Sbt(
commands = List("unusedCompileDependenciesTest"),
name = Some("Check for unused compile-time dependencies."),
)
val scalaFmtCheck = Sbt(
commands = List("scalafmtCheck"),
name = Some("Check Scala code formatting."),
)
val scalaFmtSbtCheck = Sbt(
commands = List("scalafmtSbtCheck"),
name = Some("Check sbt project formatting."),
)
unusedCompileDependencies ::
scalaFmtCheck ::
scalaFmtSbtCheck ::
Nil
}