Install sbt via coursier in release and test workflows#106
Merged
Conversation
The Release workflow started failing on main with `sbt: command not found` after PR #37 moved it to ubuntu-24.04, whose runner image no longer ships sbt preinstalled. release.yml and test.yml relied on that preinstalled sbt, so add `apps: sbt:1.12.13` to the coursier/setup-action step in both, matching scala-steward.yml. Also add a Renovate custom manager tracking the Ubuntu runner version in test.yml's build matrix, which the built-in github-actions manager does not parse (only scalar runs-on values, as in release.yml). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
Releaseworkflow has been failing onmainwithsbt: command not found(exit 127). PR #37 bumpedrelease.ymltoruns-on: ubuntu-24.04, and that runner image no longer ships sbt preinstalled (ubuntu-22.04 did). Bothrelease.ymlandtest.ymlrelied on the preinstalled sbt viacoursier/setup-actionwith onlyjvmset.apps: sbt:1.12.13to thecoursier/setup-actionstep inrelease.ymlandtest.yml, matchingscala-steward.yml. The existingapps: sbt:Renovate regex manager already tracks any workflow file, so these pins stay in sync automatically.test.ymlis currently green only because it still runs onubuntu-22.04(andwindows-latest), which have sbt preinstalled; pinning proactively keeps it working when those runners move to ubuntu-24.04.test.yml's build matrix (os: [ubuntu-22.04, …]). The built-in github-actions manager only parses scalarruns-on:values (as inrelease.yml, which produced Update dependency ubuntu to v24 #37), not matrix arrays, sotest.yml's runner was never being updated. The manager is scoped totest.ymlonly to avoid double-trackingrelease.yml.