-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Updated github action to use java 8 #86
Changes from 8 commits
ce2570d
1e54576
142fa49
b10637b
c450838
54fe51d
7ca4e77
cd35192
b6b59b3
af339e9
c5ad7b5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Test Java 8 | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '8' | ||
distribution: 'temurin' | ||
cache: 'sbt' | ||
- name: sbt validation | ||
run: sbt "dependencyUpdatesFailBuild; unusedCompileDependenciesTest; undeclaredCompileDependenciesTest; test" | ||
- name: Build fat JAR | ||
run: sbt assembly | ||
Comment on lines
+25
to
+27
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The command in the "Build fat JAR" step might benefit from specifying the project or module if the repository contains multiple sbt projects. This ensures clarity and prevents potential issues when building the JAR. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,6 @@ jobs: | |
- name: sbt validation | ||
run: sbt "dependencyUpdatesFailBuild; unusedCompileDependenciesTest; undeclaredCompileDependenciesTest; test" | ||
- name: Build fat JAR | ||
if: startsWith(github.ref, 'refs/tags/') | ||
run: sbt assembly | ||
- name: Rename fat JAR | ||
if: startsWith(github.ref, 'refs/tags/') | ||
Comment on lines
28
to
33
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The workflow still sets up JDK 11, which contradicts the PR's objective to align development with Java 8. If the intention is to maintain both Java 8 and Java 11 environments, clarify this in the documentation to avoid confusion. |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure the workflow name accurately reflects its purpose, especially since it's not only testing but also building a fat JAR. Consider renaming it to more accurately describe its full scope, e.g., "Build and Test with Java 8".