Skip to content

Commit aff07da

Browse files
Upgrade versions and improve workflow files (#84)
* [Upgrade]: upgrade versions * [Update]: Java versions and sbt installtion
1 parent 092f2f4 commit aff07da

File tree

5 files changed

+17
-10
lines changed

5 files changed

+17
-10
lines changed

.github/workflows/coverage.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ jobs:
4646
uses: actions/setup-java@v4
4747
with:
4848
distribution: zulu
49-
java-version: 11
49+
java-version: 21
5050

5151
# Setup sbt
5252
- name: Setup sbt
53-
uses: olafurpg/setup-scala@v14
54-
with:
55-
java-version: zulu@1.11
53+
run: |
54+
curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x86_64-pc-linux.gz | gzip -d > cs && chmod +x cs && echo Y | ./cs setup
55+
echo PATH="$PATH:/home/runner/.local/share/coursier/bin" >> "$GITHUB_ENV"
5656
5757
# Checkout
5858
- name: Checkout Open-COBOL-ESQL-4j

.github/workflows/doc.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ jobs:
3030
uses: actions/setup-java@v4
3131
with:
3232
distribution: zulu
33-
java-version: 11
33+
java-version: 21
3434

3535
# Setup sbt
3636
- name: Setup sbt
37-
uses: olafurpg/setup-scala@v14
38-
with:
39-
java-version: zulu@1.11
37+
run: |
38+
curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x86_64-pc-linux.gz | gzip -d > cs && chmod +x cs && echo Y | ./cs setup
39+
echo PATH="$PATH:/home/runner/.local/share/coursier/bin" >> "$GITHUB_ENV"
4040
4141
# Checkout opensource COBOL 4J
4242
- name: Checkout opensourcecobol 4J

.github/workflows/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ jobs:
7070
dnf -y update
7171
dnf install -y gcc make bison flex automake autoconf diffutils gettext
7272
73+
# Setup JDK
74+
- name: Setup JDK
75+
uses: actions/setup-java@v4
76+
with:
77+
distribution: zulu
78+
java-version: 21
79+
7380
# Setup JDK
7481
- name: Setup JDK
7582
uses: actions/setup-java@v4

dblibj/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name := "OCESQL4j"
22

33
version := "0.1"
44

5-
scalaVersion := "2.13.6"
5+
scalaVersion := "2.13.14"
66

77
libraryDependencies ++= Seq(
88
"org.scalatest" %% "scalatest" % "3.0.8" % Test,

dblibj/project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version = 1.5.5
1+
sbt.version = 1.10.0

0 commit comments

Comments
 (0)