mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2024-12-22 09:30:45 +00:00
26 lines
833 B
Scala
26 lines
833 B
Scala
import sbt._
|
|
import sbt.Keys._
|
|
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(
|
|
githubWorkflowBuild := Seq(WorkflowStep.Sbt(List("scalafixAll --check", "scalafmtCheck", "test"))),
|
|
githubWorkflowEnv := Map("GH_PACKAGES_TOKEN" -> "${{ secrets.GH_PACKAGES_TOKEN }}"),
|
|
githubWorkflowPublishTargetBranches := Nil,
|
|
githubWorkflowIncludeClean := false
|
|
)
|
|
}
|