Skip to content

Commit

Permalink
restore step sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
ThijsBroersen committed Nov 28, 2024
1 parent 3fe9f88 commit 223d0f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions zio-sbt-ci/src/main/scala/zio/sbt/ZioSbtCiPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ object ZioSbtCiPlugin extends AutoPlugin {
SetupLibuv,
SetupJava(javaVersion),
CacheDependencies
) ++ checkAllCodeCompiles.flatMap(_.flatten) ++ checkArtifactBuildProcess.flatMap(
_.flatten
) ++ checkWebsiteBuildProcess.flatMap(_.flatten)
) ++ checkAllCodeCompiles ++ checkArtifactBuildProcess ++ checkWebsiteBuildProcess
}
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,6 @@ object Step {
override def flatten: Seq[SingleStep] =
steps.flatMap(_.flatten)
}

implicit lazy val codec: JsonCodec[Step] = DeriveJsonCodec.gen[Step]
}

case class ImageRef(ref: String)
Expand Down Expand Up @@ -292,7 +290,7 @@ case class Job(
needs: Option[Seq[String]] = None,
services: Option[Seq[Service]] = None,
`if`: Option[Condition] = None,
steps: Seq[Step.SingleStep] = Seq.empty
steps: Seq[Step] = Seq.empty
) {

def id: String = name.toLowerCase().replace(" ", "-")
Expand Down Expand Up @@ -330,6 +328,8 @@ case class Job(
}

object Job {
implicit lazy val stepsCodec: JsonCodec[Seq[Step]] =
JsonCodec.seq[Step.SingleStep].transform[Seq[Step]](identity, _.flatMap(_.flatten))
implicit lazy val codec: JsonCodec[Job] = DeriveJsonCodec.gen[Job]
}

Expand Down

0 comments on commit 223d0f2

Please sign in to comment.