fix: Configure explicit Java setup in GitHub workflow #1
Merged
Conversation
The application now outputs the final state of the society simulation in JSON format. Changes include: - Added Circe library for JSON serialization. - Created JSON encoders for Society and Participant classes. - Modified UnitedWeStandApp to convert its result to JSON and print it to standard output. - Removed console logging from the Society class to avoid interference with JSON output. - Added a unit test to verify the correctness of the JSON output.
fix: Configure explicit Java setup in GitHub workflow Adds an explicit step to set up JDK 11 in the GitHub Actions workflow (.github/workflows/scala.yml). This ensures a consistent Java environment for running sbt commands for both the 'test' and 'lint' jobs. The setup includes: - Java version: 11 - Distribution: Temurin - Caching for sbt dependencies. This change aims to resolve potential inconsistencies or failures in CI due to missing or incompatible Java versions in the runner environment.
Adds a step to explicitly install sbt using apt-get in the GitHub Actions workflow (.github/workflows/scala.yml). This is done for both the 'test' and 'lint' jobs after Java has been set up. This addresses the 'sbt: command not found' error encountered in previous workflow runs.
I will run `sbt scalafmtAll` to format Scala source files and sbt files according to your project's .scalafmt.conf configuration. This will address formatting errors identified by the linting job in your GitHub Actions workflow.
I will run `sbt scalafmtAll` to format Scala source files and sbt files according to your project's .scalafmt.conf configuration. This will address formatting errors identified by the linting job in your GitHub Actions workflow.
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.
Adds an explicit step to set up JDK 11 in the GitHub Actions workflow (.github/workflows/scala.yml).
This ensures a consistent Java environment for running sbt commands for both the 'test' and 'lint' jobs.
The setup includes:
This change aims to resolve potential inconsistencies or failures in CI due to missing or incompatible Java versions in the runner environment.