-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make The Check Artifact Build Process Optional (#103)
* make check build process optional. * fix errors. * scalafix.
- Loading branch information
Showing
2 changed files
with
34 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -176,7 +176,8 @@ object WebsiteUtils { | |
docsPublishBranch: String, | ||
sbtBuildOptions: List[String] = List.empty, | ||
versioning: DocsVersioning = SemanticVersioning, | ||
updateReadmeCondition: Option[Condition] = None | ||
updateReadmeCondition: Option[Condition] = None, | ||
checkArtifactBuildProcess: Option[Step] = None | ||
): String = { | ||
object Actions { | ||
val checkout: ActionRef = ActionRef("actions/[email protected]") | ||
|
@@ -222,11 +223,6 @@ object WebsiteUtils { | |
run = Some(s"sbt docs/clean; sbt ${sbtBuildOptions.mkString(" ")} docs/buildWebsite") | ||
) | ||
|
||
val CheckArtifactsBuildProcess: Step.SingleStep = Step.SingleStep( | ||
name = "Check artifacts build process", | ||
run = Some(s"sbt ${sbtBuildOptions.mkString(" ")} +publishLocal") | ||
) | ||
|
||
val CheckGithubWorkflow: Step.SingleStep = Step.SingleStep( | ||
name = "Check if the site workflow is up to date", | ||
run = Some(s"sbt ${sbtBuildOptions.mkString(" ")} docs/checkGithubWorkflow") | ||
|
@@ -275,14 +271,25 @@ object WebsiteUtils { | |
), | ||
steps = Seq( | ||
Step.StepSequence( | ||
Seq( | ||
Checkout, | ||
SetupJava, | ||
CheckReadme, | ||
CheckGithubWorkflow, | ||
CheckArtifactsBuildProcess, | ||
CheckWebsiteBuildProcess | ||
) | ||
checkArtifactBuildProcess match { | ||
case Some(artifactBuildProcess) => | ||
Seq( | ||
Checkout, | ||
SetupJava, | ||
CheckReadme, | ||
CheckGithubWorkflow, | ||
artifactBuildProcess, | ||
CheckWebsiteBuildProcess | ||
) | ||
case None => | ||
Seq( | ||
Checkout, | ||
SetupJava, | ||
CheckReadme, | ||
CheckGithubWorkflow, | ||
CheckWebsiteBuildProcess | ||
) | ||
} | ||
) | ||
) | ||
), | ||
|