File tree Expand file tree Collapse file tree 1 file changed +27
-5
lines changed Expand file tree Collapse file tree 1 file changed +27
-5
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,10 @@ jobs:
26
26
build :
27
27
runs-on : ubuntu-latest
28
28
timeout-minutes : 30
29
-
30
29
strategy :
31
30
matrix :
32
- java : [11, 17, 21]
31
+ java : [17, 21]
33
32
distribution : [temurin]
34
-
35
33
steps :
36
34
- uses : actions/checkout@v5
37
35
43
41
cache : ' maven'
44
42
45
43
- name : Build with Maven
46
- # Java 17 is required for tests
47
- run : ./mvnw -B clean package ${{ matrix.java >=17 && '-P run-integration-tests' || '-Dmaven.test.skip=true' }}
44
+ run : ./mvnw -B clean package -P run-integration-tests
48
45
49
46
- name : Check for uncommited changes
50
47
run : |
79
76
path : ${{ env.PRIMARY_MAVEN_MODULE }}/target/screenshots
80
77
if-no-files-found : ignore
81
78
79
+ # Ensure compatibility with Java 11
80
+ # See https://github.com/xdev-software/chartjs-java-model/issues/14
81
+ build-legacy-java-11 :
82
+ runs-on : ubuntu-latest
83
+ timeout-minutes : 30
84
+ steps :
85
+ - uses : actions/checkout@v5
86
+
87
+ - name : Set up JDK
88
+ uses : actions/setup-java@v5
89
+ with :
90
+ distribution : temurin
91
+ java-version : 11
92
+
93
+ - name : Cache Maven
94
+ uses : actions/cache@v4
95
+ with :
96
+ path : ~/.m2/repository
97
+ key : ${{ runner.os }}-mvn-java-11-${{ hashFiles('**/pom.xml') }}
98
+ restore-keys : |
99
+ ${{ runner.os }}-mvn-java-11-
100
+
101
+ - name : Build with Maven
102
+ run : ./mvnw -B clean package -Dmaven.test.skip=true
103
+
82
104
checkstyle :
83
105
runs-on : ubuntu-latest
84
106
if : ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate/') }}
You can’t perform that action at this time.
0 commit comments