6502-opcodes/project/GitHubActionsSettings.scala

26 lines
833 B
Scala
Raw Normal View History

2022-06-20 17:37:41 +00:00
import sbt._
2022-12-01 13:17:33 +00:00
import sbt.Keys._
2022-06-20 17:37:41 +00:00
import sbtghactions._
import sbtghactions.GenerativeKeys._
/**
* Automatically enriches projects with the following settings (despite the word "override").
*/
object GitHubActionsSettings extends AutoPlugin {
/**
* Thus plug-in will automatically be enabled; it has no requirements.
*/
override def trigger: PluginTrigger = AllRequirements
override def requires: Plugins =
GitHubActionsPlugin
override val buildSettings: Seq[Setting[_]] = Seq(
2022-12-05 14:14:58 +00:00
githubWorkflowBuild := Seq(WorkflowStep.Sbt(List("scalafixAll --check", "scalafmtCheck", "test"))),
2022-12-02 01:44:59 +00:00
githubWorkflowEnv := Map("GH_PACKAGES_TOKEN" -> "${{ secrets.GH_PACKAGES_TOKEN }}"),
2022-06-20 17:37:41 +00:00
githubWorkflowPublishTargetBranches := Nil,
2022-12-02 01:44:59 +00:00
githubWorkflowIncludeClean := false
2022-06-20 17:37:41 +00:00
)
}