diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed2aeb3886c..6f48120b8e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,7 +72,6 @@ jobs: name: Sbt-metals/scripted jdk11 os: ubuntu-latest java: "11" - - type: maven - type: sbt-metals Sbt 2 command: bin/test.sh '++3.6.2; sbt-metals/scripted' name: sbt-metals/scripted (Sbt 2) @@ -151,6 +150,7 @@ jobs: - name: ${{ matrix.command }} run: ${{ matrix.command }} env: + METALS_TEST: true GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} GOOGLE_APPLICATION_CREDENTIALS_JSON: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON }} - name: "test download dependencies" diff --git a/build.sbt b/build.sbt index f06322f9f6f..ee7a984a66f 100644 --- a/build.sbt +++ b/build.sbt @@ -11,6 +11,7 @@ Global / resolvers += "scala-integration" at def localSnapshotVersion = "1.4.3-SNAPSHOT" def isCI = System.getenv("CI") != null +def isTest = System.getenv("METALS_TEST") != null def isScala211(v: Option[(Long, Long)]): Boolean = v.contains((2, 11)) def isScala212(v: Option[(Long, Long)]): Boolean = v.contains((2, 12)) @@ -41,7 +42,7 @@ ThisBuild / semanticdbVersion := V.semanticdb(scalaVersion.value) inThisBuild( List( version ~= { dynVer => - if (isCI) dynVer + if (isCI && !isTest) dynVer else localSnapshotVersion // only for local publishing }, scalaVersion := V.scala213,