From 92d625a9b58b3f1bd342bf5052b404ed9c91c86b Mon Sep 17 00:00:00 2001 From: Erlend Hamnaberg Date: Thu, 13 Jun 2024 13:50:15 +0200 Subject: [PATCH] remove fatal warnings for test --- .github/workflows/ci.yml | 2 +- build.sbt | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c35ddcfb..8e4691bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -315,6 +315,6 @@ jobs: - run: sbt '++ ${{ matrix.scala }}' coverage rootJVM/test coverageAggregate - - uses: codecov/codecov-action@v2 + - uses: codecov/codecov-action@v4 with: flags: ${{matrix.scala}},${{matrix.java}} diff --git a/build.sbt b/build.sbt index 894f7185..9c6cffef 100644 --- a/build.sbt +++ b/build.sbt @@ -11,7 +11,8 @@ val munitVersion = "0.7.29" val disciplineMunitVersion = "1.0.9" ThisBuild / tlBaseVersion := "0.14" -ThisBuild / tlCiReleaseTags := false +ThisBuild / tlCiReleaseTags := true +ThisBuild / tlFatalWarnings := false // we currently have a lot of warnings that will need to be fixed ThisBuild / organization := "io.circe" ThisBuild / crossScalaVersions := List(Scala212V, Scala213V) @@ -34,7 +35,7 @@ ThisBuild / githubWorkflowAddedJobs ++= Seq( UseRef.Public( "codecov", "codecov-action", - "v2" + "v4" ), params = Map( "flags" -> List("${{matrix.scala}}", "${{matrix.java}}").mkString(",") @@ -44,6 +45,12 @@ ThisBuild / githubWorkflowAddedJobs ++= Seq( ) ) +def do_configure(project: Project) = project.settings( + Seq( + Test / scalacOptions -= "-Xfatal-warnings" + ) +) + //val docMappingsApiDir = settingKey[String]("Subdirectory in site target directory for API docs") lazy val root = @@ -90,6 +97,7 @@ lazy val genericExtras = crossProject(JSPlatform, JVMPlatform, NativePlatform) .nativeSettings( tlVersionIntroduced := List("2.12", "2.13").map(_ -> "0.14.3").toMap ) + .configure(do_configure) lazy val benchmarks = project .in(file("benchmarks"))