Skip to content

Commit

Permalink
Ensure SBT is installed using Coursier
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrohdezma committed Jan 4, 2025
1 parent 107142e commit 2d41fa7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modules/coursier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -32,7 +32,7 @@ export async function install(): Promise<void> {

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},
Expand All @@ -51,6 +51,8 @@ export async function install(): Promise<void> {

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)
Expand Down

0 comments on commit 2d41fa7

Please sign in to comment.