Skip to content

Commit a6f9210

Browse files
Here's the updated commit message:
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.
1 parent 328c829 commit a6f9210

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/scala.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ jobs:
44
test:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v2
7+
- uses: actions/checkout@v3
8+
- name: Set up JDK 11
9+
uses: actions/setup-java@v3
10+
with:
11+
java-version: '11'
12+
distribution: 'temurin'
13+
cache: 'sbt'
814
- name: Run tests
915
run: sbt coverage test
1016
- name: Coverage Report
@@ -16,6 +22,12 @@ jobs:
1622
lint:
1723
runs-on: ubuntu-latest
1824
steps:
19-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v3
26+
- name: Set up JDK 11
27+
uses: actions/setup-java@v3
28+
with:
29+
java-version: '11'
30+
distribution: 'temurin'
31+
cache: 'sbt'
2032
- name: Formatting
21-
run: sbt scalafmtSbtCheck scalafmtCheck test:scalafmtCheck
33+
run: sbt scalafmtSbtCheck scalafmtCheck test:scalafmtCheck

0 commit comments

Comments
 (0)