Conversation
Port CI changes from scala3 branch: use reusable build workflow, update runners to ubuntu-22.04, add label and auto-merge jobs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR modernizes the CI workflow for the scala2 branch by adopting reusable workflows and updating to supported GitHub runner versions. The changes align the scala2 branch CI configuration with the scala3 branch, addressing runner availability issues that were causing build failures.
Changes:
- Replaced inline
cijob with centralizedbuild-scala.ymlreusable workflow from softwaremill/github-actions-workflows - Updated
mimaandpublishjob runners from deprecatedubuntu-20.04toubuntu-22.04 - Added
labelandauto-mergejobs for automated handling of Scala Steward dependency update PRs
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: 'temurin' |
There was a problem hiding this comment.
The matrix.java variable is referenced here, but no matrix strategy is defined in the publish job. This will cause the workflow to fail because the variable is undefined. You should either define a matrix strategy or replace ${{ matrix.java }} with a specific Java version (e.g., '21' or '17').
- Replace undefined matrix.java with explicit '17' in mima and publish jobs - Exclude .sbt/matrix/ generated files from scalafmtCheckAll Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The reusable build-scala.yml workflow runs scalafmtCheckAll which is incompatible with sbt-projectmatrix generated files. Revert to inline steps (compile + test) but with updated runners and java-version. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
cijob with reusablebuild-scala.ymlworkflow (matches scala3 branch)mimaandpublishrunners from discontinuedubuntu-20.04toubuntu-22.04labelandauto-mergejobs for Scala Steward PRs (matches scala3 branch)Fixes the "maximum execution time while awaiting a runner" issue reported in #628.
🤖 Generated with Claude Code