Skip to content

Commit

Permalink
Update Scala 2 to 2.12.20 and 2.13.16
Browse files Browse the repository at this point in the history
  • Loading branch information
plokhotnyuk committed Jan 25, 2025
1 parent b1aaf9c commit f66fa0c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
fail-fast: false
matrix:
java: ['17', '21']
scala: ['2.13.15', '3.3.4']
scala: ['2.13.16', '3.3.4']
steps:
- name: Checkout current branch
uses: actions/checkout@v4.1.2
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
fail-fast: false
matrix:
java: ['17', '21']
scala: ['2.12.19', '2.13.15', '3.3.4']
scala: ['2.12.20', '2.13.16', '3.3.4']
platform: ['JVM', 'JS', 'Native']
steps:
- name: Checkout current branch
Expand Down
2 changes: 1 addition & 1 deletion project/BuildHelper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ object BuildHelper {
},
semanticdbEnabled := scalaVersion.value != ScalaDotty, // enable SemanticDB
semanticdbOptions += "-P:semanticdb:synthetics:on",
semanticdbVersion := "4.10.2",
semanticdbVersion := "4.12.7",
Test / parallelExecution := true,
incOptions ~= (_.withLogRecompileOnMacro(false)),
autoAPIMappings := true,
Expand Down
10 changes: 2 additions & 8 deletions zio-json-golden/src/main/scala/zio/json/golden/filehelpers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import java.nio.file.Path
import zio.{ test => _, _ }
import zio.json._

import zio.stacktracer.TracingImplicits.disableAutoTrace

import java.nio.file.Files

object filehelpers {
Expand All @@ -15,17 +13,13 @@ object filehelpers {
if (file.getName == "target") ZIO.succeed(file)
else ZIO.attempt(file.getParentFile).flatMap(getRootDir)

def createGoldenDirectory(pathToDir: String)(implicit trace: Trace): Task[Path] = {
val _ = disableAutoTrace // TODO: Find a way to suppress the unused import warning
val rootFile = new File(getClass.getResource("/").toURI)

def createGoldenDirectory(pathToDir: String)(implicit trace: Trace): Task[Path] =
for {
baseFile <- getRootDir(rootFile)
baseFile <- getRootDir(new File(getClass.getResource(".").toURI))
goldenDir = new File(baseFile.getParentFile, pathToDir)
path = goldenDir.toPath
_ <- ZIO.attemptBlocking(goldenDir.mkdirs)
} yield path
}

def writeSampleToFile(path: Path, sample: GoldenSample)(implicit trace: Trace): IO[IOException, Unit] = {
val jsonString = sample.toJsonPretty
Expand Down

0 comments on commit f66fa0c

Please sign in to comment.