Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setup-sbt to workflow #38

Merged
merged 1 commit into from
Dec 4, 2024
Merged

Conversation

Divs-B
Copy link
Contributor

@Divs-B Divs-B commented Nov 27, 2024

What does this change?

As we're so dependent on sbt and the sbt launcher hence we should provide this in our workflow so that external dependency wouldn't matter such as we had failed workflows on upgraded version of ubuntu recently because it has no sbt information in it.
So, to save us from these kind of issues we will provide our own setup-sbt as an action to resolve sbt easily.

How to test

Raise this PR and observe running CI.

How can we measure success?

Build should run as normal and no failing CI should be observed.

@Divs-B Divs-B requested a review from a team as a code owner November 27, 2024 16:14
Copy link

Test Results

11 tests  ±0   11 ✅ ±0   28s ⏱️ -3s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit eb3c19f. ± Comparison against base commit 98097a7.

uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 11
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since .tool-versions specifies Java 21, this is a change in the Java version used for compilation from 11 to 21, which I reckon requires a bit more testing. I think we should keep the version at 11 in this PR by leaving setup-java as-is and adding setup-sbt, instead of using setup-scala. (Once we've updated this to Java 21 we can then move to setup-scala.)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As @kelvin-chappell pointed out on another PR, the fact that this repo is using the gha-scala-release-workflow means that the java version in .tool-versions is already being used to build the library!

So this only changes what's used for tests in CI: since those have passed, we’re fine to merge this PR as-is.

(We should look into whether we need to add a --release flag or similar to support older java versions among our consumers.)

@emdash-ie emdash-ie merged commit c9770e7 into main Dec 4, 2024
4 checks passed
@emdash-ie
Copy link
Contributor

I forgot to explicitly approve this PR, but I have unofficially approved it

@emdash-ie emdash-ie deleted the db/add-setup-sbt-to-workflow branch December 4, 2024 15:09
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.

2 participants