Skip to content

Commit

Permalink
chore: Use stable version for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tgodzik committed Dec 19, 2024
1 parent c822fe1 commit 6b29842
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6b29842

Please sign in to comment.