From 3154e7e13357081a69d2c90d6ba891ee9fceed32 Mon Sep 17 00:00:00 2001 From: Erlend Hamnaberg Date: Mon, 14 Oct 2024 19:46:48 +0200 Subject: [PATCH] install sbt in coverage workflow --- core/src/main/scala/io/circe/sbt/CirceOrgPlugin.scala | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/src/main/scala/io/circe/sbt/CirceOrgPlugin.scala b/core/src/main/scala/io/circe/sbt/CirceOrgPlugin.scala index 4f31265..cf07459 100644 --- a/core/src/main/scala/io/circe/sbt/CirceOrgPlugin.scala +++ b/core/src/main/scala/io/circe/sbt/CirceOrgPlugin.scala @@ -79,7 +79,13 @@ object CirceOrgPlugin extends AutoPlugin { id = "coverage", name = "Generate coverage report", scalas = githubWorkflowScalaVersions.value.toList, - steps = List(WorkflowStep.Checkout) ++ WorkflowStep.SetupJava( + steps = List( + WorkflowStep.Use( + UseRef.Public("sbt", "setup-sbt", "v1"), + name = Some("Install sbt") + ), + WorkflowStep.Checkout + ) ++ WorkflowStep.SetupJava( List(githubWorkflowJavaVersions.value.last) ) ++ githubWorkflowGeneratedCacheSteps.value ++ List( WorkflowStep.Sbt(List("coverage", s"$rootProj/test", "coverageAggregate")),