Skip to content

Commit

Permalink
Merge branch 'main' into codecov-v4
Browse files Browse the repository at this point in the history
  • Loading branch information
mzuehlke committed Nov 21, 2024
2 parents c9f342a + 694e9e6 commit 05c84a7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:

- uses: coursier/setup-action@v1
with:
apps: scalafmt
apps: 'scalafmt:3.8.3'

- name: Build project
run: sbt '++ ${{ matrix.scala }}' validate
Expand Down
6 changes: 4 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ ThisBuild / githubWorkflowPublish := Seq(
ThisBuild / githubWorkflowJavaVersions := Seq("21", "17", "11").map(JavaSpec(Temurin, _))
ThisBuild / githubWorkflowBuild :=
Seq(
WorkflowStep
.Use(UseRef.Public("coursier", "setup-action", "v1"), params = Map("apps" -> "scalafmt")),
WorkflowStep.Use(
UseRef.Public("coursier", "setup-action", "v1"),
params = Map("apps" -> "scalafmt:3.8.3")
),
WorkflowStep.Sbt(List("validate"), name = Some("Build project")),
WorkflowStep.Use(
ref = UseRef.Public("codecov", "codecov-action", "v4"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,15 @@ object ForgeAuthAlg {
config.gitCfg.gitAskPass
)
case GitHub =>
val gitHub =
config.githubApp.getOrElse(
throw new IllegalArgumentException("GitHub app configuration is missing")
)
new GitHubAuthAlg(config.forgeCfg.apiHost, gitHub.id, gitHub.keyFile)
config.githubApp match {
case Some(gitHub) => new GitHubAuthAlg(config.forgeCfg.apiHost, gitHub.id, gitHub.keyFile)
case None =>
new BasicAuthAlg(
config.forgeCfg.apiHost,
config.forgeCfg.login,
config.gitCfg.gitAskPass
)
}
case GitLab =>
new GitLabAuthAlg(config.forgeCfg.apiHost, config.forgeCfg.login, config.gitCfg.gitAskPass)
case Gitea =>
Expand Down
4 changes: 2 additions & 2 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import sbt._
object Dependencies {
val bcprovJdk15to18 = "org.bouncycastle" % "bcprov-jdk15to18" % "1.79"
val betterFiles = "com.github.pathikrit" %% "better-files" % "3.9.2"
val catsEffect = "org.typelevel" %% "cats-effect" % "3.5.5"
val catsEffect = "org.typelevel" %% "cats-effect" % "3.5.6"
val catsCore = "org.typelevel" %% "cats-core" % "2.12.0"
val catsLaws = "org.typelevel" %% "cats-laws" % catsCore.revision
val catsParse = "org.typelevel" %% "cats-parse" % "1.0.0"
Expand All @@ -14,7 +14,7 @@ object Dependencies {
val circeParser = "io.circe" %% "circe-parser" % circeGeneric.revision
val circeRefined = "io.circe" %% "circe-refined" % "0.15.1"
val commonsIo = "commons-io" % "commons-io" % "2.17.0"
val coursierCore = "io.get-coursier" %% "coursier" % "2.1.17"
val coursierCore = "io.get-coursier" %% "coursier" % "2.1.18"
val coursierSbtMaven =
"io.get-coursier" %% "coursier-sbt-maven-repository" % coursierCore.revision
val cron4sCore = "com.github.alonsodomin.cron4s" %% "cron4s-core" % "0.7.0"
Expand Down

0 comments on commit 05c84a7

Please sign in to comment.