@@ -13,50 +13,36 @@ jobs:
13
13
strategy :
14
14
fail-fast : false
15
15
matrix :
16
- java : [8, 11]
16
+ java : [7, 8, 11]
17
17
18
18
steps :
19
19
- uses : actions/checkout@v2
20
- - name : Setup java
21
- uses : actions/setup-java@v1
22
- with :
23
- java-version : ${{ matrix.java }}
24
- - name : Cache Maven packages
25
- uses : actions/cache@v2
26
- with :
27
- path : ~/.m2
28
- key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
29
- restore-keys : ${{ runner.os }}-m2
30
- - name : Setup Node.js
31
- uses : actions/setup-node@v1
32
- with :
33
- node-version : 14.x
34
- - name : Run the Maven verify phase
35
- run : mvn verify -Dgpg.skip=true
36
20
37
- verify-java7 :
38
- runs-on : ubuntu-22.04 # with maven 3.8 (https://github.com/actions/runner-images/blob/ubuntu24/20250105.1/images/ubuntu/Ubuntu2204-Readme.md)
39
-
40
- strategy :
41
- fail-fast : false
42
- matrix :
43
- java : [ 7 ]
21
+ - name : Install Maven 3.8.x (instead of 3.9.x)
22
+ run : |
23
+ MAVEN_VERSION=3.8.8
24
+ wget https://downloads.apache.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz
25
+ tar xzvf apache-maven-$MAVEN_VERSION-bin.tar.gz
26
+ sudo mv apache-maven-$MAVEN_VERSION /opt/maven
27
+ sudo rm -f /usr/bin/mvn # Remove existing symbolic link if it exists
28
+ sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn # Create new symbolic link
44
29
45
- steps :
46
- - uses : actions/checkout@v2
47
30
- name : Setup java
48
31
uses : actions/setup-java@v1
49
32
with :
50
33
java-version : ${{ matrix.java }}
34
+
51
35
- name : Cache Maven packages
52
36
uses : actions/cache@v2
53
37
with :
54
38
path : ~/.m2
55
39
key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
56
40
restore-keys : ${{ runner.os }}-m2
41
+
57
42
- name : Setup Node.js
58
43
uses : actions/setup-node@v1
59
44
with :
60
45
node-version : 14.x
46
+
61
47
- name : Run the Maven verify phase
62
48
run : mvn verify -Dgpg.skip=true
0 commit comments