Skip to content

Install sbt via coursier in release and test workflows#106

Merged
ptrdom merged 1 commit into
mainfrom
fix-release-sbt-install
Jul 8, 2026
Merged

Install sbt via coursier in release and test workflows#106
ptrdom merged 1 commit into
mainfrom
fix-release-sbt-install

Conversation

@ptrdom

@ptrdom ptrdom commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Summary

The Release workflow has been failing on main with sbt: command not found (exit 127). PR #37 bumped release.yml to runs-on: ubuntu-24.04, and that runner image no longer ships sbt preinstalled (ubuntu-22.04 did). Both release.yml and test.yml relied on the preinstalled sbt via coursier/setup-action with only jvm set.

  • Add apps: sbt:1.12.13 to the coursier/setup-action step in release.yml and test.yml, matching scala-steward.yml. The existing apps: sbt: Renovate regex manager already tracks any workflow file, so these pins stay in sync automatically.
  • test.yml is currently green only because it still runs on ubuntu-22.04 (and windows-latest), which have sbt preinstalled; pinning proactively keeps it working when those runners move to ubuntu-24.04.
  • Add a Renovate custom manager tracking the Ubuntu runner version in test.yml's build matrix (os: [ubuntu-22.04, …]). The built-in github-actions manager only parses scalar runs-on: values (as in release.yml, which produced Update dependency ubuntu to v24 #37), not matrix arrays, so test.yml's runner was never being updated. The manager is scoped to test.yml only to avoid double-tracking release.yml.

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>
@ptrdom ptrdom enabled auto-merge (squash) July 8, 2026 09:02
@ptrdom ptrdom merged commit a49c675 into main Jul 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant