Skip to content

Commit fac5b86

Browse files
authored
Configured workflow with jdk17 environment (#314)
1 parent f27f132 commit fac5b86

File tree

1 file changed

+13
-30
lines changed

1 file changed

+13
-30
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,20 @@ jobs:
2222
runs-on: ubuntu-18.04
2323
env:
2424
EI_BACKEND_PORT: 8099
25-
JAVA_HOME: /usr/lib/jvm/java-1.8.0-openjdk-amd64
2625
M2_HOME: /opt/apache-maven-3.6.3
2726
MAVEN_HOME: /opt/apache-maven-3.6.3
2827

2928
# Steps represent a sequence of tasks that will be executed as part of the job
3029
steps:
3130
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3231
- uses: actions/checkout@v3
32+
- uses: actions/setup-java@v3
33+
with:
34+
distribution: 'temurin'
35+
java-version: '17'
3336

3437
# Runs a set of commands using the runners shell
3538
# Run before every job
36-
- name: Install Java
37-
run: |
38-
sudo apt-get update
39-
sudo apt-get install -y openjdk-8-jdk
40-
java -version
41-
uname -a
42-
chmod +x pom.xml
4339

4440
- name: Install Maven
4541
shell: bash
@@ -59,25 +55,17 @@ jobs:
5955
runs-on: ubuntu-18.04
6056
env:
6157
EI_BACKEND_PORT: 8099
62-
JAVA_HOME: /usr/lib/jvm/java-1.8.0-openjdk-amd64
6358
M2_HOME: /opt/apache-maven-3.6.3
6459
MAVEN_HOME: /opt/apache-maven-3.6.3
6560

6661
# Steps represent a sequence of tasks that will be executed as part of the job
6762
steps:
6863
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
6964
- uses: actions/checkout@v3
70-
71-
# Runs a set of commands using the runners shell
72-
# Run before every job
73-
- name: Install Java
74-
run: |
75-
sudo apt-get update
76-
sudo apt-get install -y openjdk-8-jdk
77-
java -version
78-
uname -a
79-
chmod +x pom.xml
80-
mvn --version
65+
- uses: actions/setup-java@v3
66+
with:
67+
distribution: 'temurin'
68+
java-version: '17'
8169

8270
- name: Install Maven
8371
shell: bash
@@ -120,25 +108,20 @@ jobs:
120108
runs-on: ubuntu-18.04
121109
env:
122110
EI_BACKEND_PORT: 8099
123-
JAVA_HOME: /usr/lib/jvm/java-1.8.0-openjdk-amd64
124111
M2_HOME: /opt/apache-maven-3.6.3
125112
MAVEN_HOME: /opt/apache-maven-3.6.3
126113

127114
# Steps represent a sequence of tasks that will be executed as part of the job
128115
steps:
129116
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
130117
- uses: actions/checkout@v3
131-
118+
- uses: actions/setup-java@v3
119+
with:
120+
distribution: 'temurin'
121+
java-version: '17'
122+
132123
# Runs a set of commands using the runners shell
133124
# Run before every job
134-
- name: Install Java
135-
run: |
136-
sudo apt-get update
137-
sudo apt-get install -y openjdk-8-jdk
138-
java -version
139-
uname -a
140-
chmod +x pom.xml
141-
mvn --version
142125

143126
- name: Install Maven
144127
shell: bash

0 commit comments

Comments
 (0)