@@ -22,24 +22,20 @@ jobs:
22
22
runs-on : ubuntu-18.04
23
23
env :
24
24
EI_BACKEND_PORT : 8099
25
- JAVA_HOME : /usr/lib/jvm/java-1.8.0-openjdk-amd64
26
25
M2_HOME : /opt/apache-maven-3.6.3
27
26
MAVEN_HOME : /opt/apache-maven-3.6.3
28
27
29
28
# Steps represent a sequence of tasks that will be executed as part of the job
30
29
steps :
31
30
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
32
31
- uses : actions/checkout@v3
32
+ - uses : actions/setup-java@v3
33
+ with :
34
+ distribution : ' temurin'
35
+ java-version : ' 17'
33
36
34
37
# Runs a set of commands using the runners shell
35
38
# 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
43
39
44
40
- name : Install Maven
45
41
shell : bash
@@ -59,25 +55,17 @@ jobs:
59
55
runs-on : ubuntu-18.04
60
56
env :
61
57
EI_BACKEND_PORT : 8099
62
- JAVA_HOME : /usr/lib/jvm/java-1.8.0-openjdk-amd64
63
58
M2_HOME : /opt/apache-maven-3.6.3
64
59
MAVEN_HOME : /opt/apache-maven-3.6.3
65
60
66
61
# Steps represent a sequence of tasks that will be executed as part of the job
67
62
steps :
68
63
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
69
64
- 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'
81
69
82
70
- name : Install Maven
83
71
shell : bash
@@ -120,25 +108,20 @@ jobs:
120
108
runs-on : ubuntu-18.04
121
109
env :
122
110
EI_BACKEND_PORT : 8099
123
- JAVA_HOME : /usr/lib/jvm/java-1.8.0-openjdk-amd64
124
111
M2_HOME : /opt/apache-maven-3.6.3
125
112
MAVEN_HOME : /opt/apache-maven-3.6.3
126
113
127
114
# Steps represent a sequence of tasks that will be executed as part of the job
128
115
steps :
129
116
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
130
117
- uses : actions/checkout@v3
131
-
118
+ - uses : actions/setup-java@v3
119
+ with :
120
+ distribution : ' temurin'
121
+ java-version : ' 17'
122
+
132
123
# Runs a set of commands using the runners shell
133
124
# 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
142
125
143
126
- name : Install Maven
144
127
shell : bash
0 commit comments