From 6b29842200b77d6465d0cb1b1c514b66482eace6 Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Thu, 19 Dec 2024 11:09:32 +0100 Subject: [PATCH] chore: Use stable version for tests --- .github/workflows/ci.yml | 2 +- build.sbt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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,