From 2d41fa7534736e82e8bf4ed4e9d8ff40a33fcee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Herna=CC=81ndez?= Date: Sat, 4 Jan 2025 11:39:14 +0100 Subject: [PATCH 1/2] Ensure SBT is installed using Coursier --- src/modules/coursier.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/coursier.ts b/src/modules/coursier.ts index 38ab1e38..9a6336e8 100644 --- a/src/modules/coursier.ts +++ b/src/modules/coursier.ts @@ -10,7 +10,7 @@ import {type NonEmptyString} from '../core/types' * Installs `coursier` and add its executable to the `PATH`. * * Once coursier is installed, installs `scalafmt` - * `scalafix` and `scala-cli` tools. + * `scalafix`, `sbt` and `scala-cli` tools. * * Throws error if the installation fails. */ @@ -32,7 +32,7 @@ export async function install(): Promise { await exec.exec( 'cs', - ['install', 'scalafmt', 'scalafix', 'scala-cli', '--install-dir', binary], + ['install', 'scalafmt', 'scalafix', 'scala-cli', 'sbt', '--install-dir', binary], { silent: true, listeners: {stdline: core.debug, errline: core.debug}, @@ -51,6 +51,8 @@ export async function install(): Promise { core.info(`✓ Scalafix installed, version: ${scalafixVersion.trim()}`) + core.info('✓ SBT installed') + core.info('✓ scala-cli installed') } catch (error: unknown) { core.debug((error as Error).message) From dbefdd4a699d5f39a0f4ea4b0510c287bdc6251a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Herna=CC=81ndez?= Date: Sat, 4 Jan 2025 20:17:37 +0100 Subject: [PATCH 2/2] Remove `setup-sbt` step from examples --- README.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/README.md b/README.md index 8193e4fc..f9e1f364 100644 --- a/README.md +++ b/README.md @@ -37,8 +37,6 @@ jobs: runs-on: ubuntu-latest name: Scala Steward steps: - - name: Install sbt - uses: sbt/setup-sbt@v1 - name: Scala Steward uses: scala-steward-org/scala-steward-action@v2 ``` @@ -134,8 +132,6 @@ jobs: runs-on: ubuntu-latest name: Launch Scala Steward steps: - - name: Install sbt - uses: sbt/setup-sbt@v1 - name: Launch Scala Steward uses: scala-steward-org/scala-steward-action@v2 with: @@ -333,8 +329,6 @@ You can manually trigger workflow runs using the [workflow_dispatch](https://doc runs-on: ubuntu-latest name: Launch Scala Steward steps: - - name: Install sbt - uses: sbt/setup-sbt@v1 - name: Launch Scala Steward uses: scala-steward-org/scala-steward-action@v2 with: @@ -392,8 +386,6 @@ When using the `github-app-*` inputs, Scala Steward will always retrieve the lis runs-on: ubuntu-latest name: Launch Scala Steward steps: - - name: Install sbt - uses: sbt/setup-sbt@v1 - name: Launch Scala Steward uses: scala-steward-org/scala-steward-action@v2 with: