-
Notifications
You must be signed in to change notification settings - Fork 138
/
Copy pathgithub.sbt
28 lines (24 loc) · 887 Bytes
/
github.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
ThisBuild / githubWorkflowArtifactUpload := false // doesn't work with scoverage
ThisBuild / githubWorkflowEnv += "SPARK_LOCAL_IP" -> "localhost"
ThisBuild / githubWorkflowArtifactDownloadExtraKeys += "project"
ThisBuild / githubWorkflowBuildSbtStepPreamble += s"project $${{ matrix.project }}"
ThisBuild / tlCiScalafmtCheck := true
ThisBuild / githubWorkflowBuild ~= { steps =>
steps.map { // replace the test step
case step: WorkflowStep.Sbt if step.commands == List("test") =>
WorkflowStep.Sbt(
commands = List("coverage", "test", "test/coverageReport"),
name = Some("Test & Compute Coverage")
)
case step => step
}
}
ThisBuild / githubWorkflowBuildPostamble +=
WorkflowStep.Use(
UseRef.Public(
"codecov",
"codecov-action",
"v3"
),
params = Map("flags" -> s"$${{ matrix.scala }}-$${{ matrix.project }}")
)