From 8465ceba216bb8522dc42d6b9e560c270dd5a237 Mon Sep 17 00:00:00 2001 From: Hossein Naderi Date: Fri, 16 Aug 2024 12:49:32 +0330 Subject: [PATCH] Pinned scala version --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ .scala-steward.conf | 1 + build.sbt | 2 +- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .scala-steward.conf diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98abd24..a7212a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -386,6 +386,31 @@ jobs: modules-ignore: rootjs_3 rootjs_2.13 rootjs_2.12 docs_3 docs_2.13 docs_2.12 yaml4s-tests_sjs1_3 yaml4s-tests_sjs1_2.13 yaml4s-tests_sjs1_2.12 rootjvm_3 rootjvm_2.13 rootjvm_2.12 rootnative_3 rootnative_2.13 rootnative_2.12 yaml4s-tests_3 yaml4s-tests_2.13 yaml4s-tests_2.12 yaml4s-tests_native0.5_3 yaml4s-tests_native0.5_2.13 yaml4s-tests_native0.5_2.12 configs-ignore: test scala-tool scala-doc-tool test-internal + validate-steward: + name: Validate Steward Config + strategy: + matrix: + os: [ubuntu-latest] + java: [temurin@11] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout current branch (fast) + uses: actions/checkout@v4 + + - name: Setup Java (temurin@11) + id: setup-java-temurin-11 + if: matrix.java == 'temurin@11' + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 11 + + - uses: coursier/setup-action@v1 + with: + apps: scala-steward + + - run: scala-steward validate-repo-config .scala-steward.conf + post-build: name: post build needs: [build] diff --git a/.scala-steward.conf b/.scala-steward.conf new file mode 100644 index 0000000..e616057 --- /dev/null +++ b/.scala-steward.conf @@ -0,0 +1 @@ +updates.pin = [ { groupId = "org.scala-lang", artifactId = "scala3-library", version = "3.3." } ] diff --git a/build.sbt b/build.sbt index 35ccb00..68798f9 100644 --- a/build.sbt +++ b/build.sbt @@ -19,7 +19,7 @@ ThisBuild / tlFatalWarnings := false val Scala212 = "2.12.19" val Scala213 = "2.13.14" -val Scala3 = "3.4.2" +val Scala3 = "3.3.3" ThisBuild / scalaVersion := Scala212 ThisBuild / crossScalaVersions := Seq(Scala3, Scala213, Scala212)