File tree Expand file tree Collapse file tree 4 files changed +30
-4
lines changed Expand file tree Collapse file tree 4 files changed +30
-4
lines changed Original file line number Diff line number Diff line change 28
28
timeout-minutes : 30
29
29
strategy :
30
30
matrix :
31
- java : [11, 17, 21]
31
+ java : [17, 21]
32
32
distribution : [temurin]
33
33
steps :
34
34
- uses : actions/checkout@v5
48
48
${{ runner.os }}-mvn-build-
49
49
50
50
- name : Build with Maven
51
- # Java 17 is required for tests
52
- run : ./mvnw -B clean package ${{ matrix.java >=17 && '-P run-integration-tests' || '-Dmaven.test.skip=true' }}
51
+ run : ./mvnw -B clean package -P run-integration-tests
53
52
54
53
- name : Check for uncommited changes
55
54
run : |
84
83
path : ${{ env.PRIMARY_MAVEN_MODULE }}/target/screenshots
85
84
if-no-files-found : ignore
86
85
86
+ # Ensure compatibility with Java 11
87
+ # See https://github.com/xdev-software/chartjs-java-model/issues/14
88
+ build-java-11 :
89
+ runs-on : ubuntu-latest
90
+ timeout-minutes : 30
91
+ steps :
92
+ - uses : actions/checkout@v5
93
+
94
+ - name : Set up JDK
95
+ uses : actions/setup-java@v5
96
+ with :
97
+ distribution : temurin
98
+ java-version : 11
99
+
100
+ - name : Cache Maven
101
+ uses : actions/cache@v4
102
+ with :
103
+ path : ~/.m2/repository
104
+ key : ${{ runner.os }}-mvn-build-java-11-${{ hashFiles('**/pom.xml') }}
105
+ restore-keys : |
106
+ ${{ runner.os }}-mvn-build-java-11-
107
+
108
+ - name : Build with Maven
109
+ run : ./mvnw -B clean package -Dmaven.test.skip=true
110
+
87
111
checkstyle :
88
112
runs-on : ubuntu-latest
89
113
if : ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate/') }}
Original file line number Diff line number Diff line change 34
34
key : ${{ runner.os }}-mvn-build-${{ hashFiles('**/pom.xml') }}
35
35
restore-keys : |
36
36
${{ runner.os }}-mvn-build-
37
-
37
+
38
38
- name : Build with Maven
39
39
run : ./mvnw -B clean package -T2C
40
40
Original file line number Diff line number Diff line change 355
355
<artifactId >maven-pmd-plugin</artifactId >
356
356
<version >3.27.0</version >
357
357
<configuration >
358
+ <analysisCache >true</analysisCache >
358
359
<includeTests >true</includeTests >
359
360
<printFailingErrors >true</printFailingErrors >
360
361
<rulesets >
Original file line number Diff line number Diff line change 72
72
<artifactId >maven-pmd-plugin</artifactId >
73
73
<version >3.27.0</version >
74
74
<configuration >
75
+ <analysisCache >true</analysisCache >
75
76
<includeTests >true</includeTests >
76
77
<printFailingErrors >true</printFailingErrors >
77
78
<rulesets >
You can’t perform that action at this time.
0 commit comments