|
35 | 35 | name: Create java 1.6 JAR |
36 | 36 | path: target/*.jar |
37 | 37 |
|
| 38 | + build-8: |
| 39 | + runs-on: ubuntu-latest |
| 40 | + strategy: |
| 41 | + fail-fast: false |
| 42 | + max-parallel: 1 |
| 43 | + matrix: |
| 44 | + # build against supported Java LTS versions: |
| 45 | + java: [ 8 ] |
| 46 | + name: Java ${{ matrix.java }} |
| 47 | + steps: |
| 48 | + - uses: actions/checkout@v3 |
| 49 | + - name: Set up JDK ${{ matrix.java }} |
| 50 | + uses: actions/setup-java@v3 |
| 51 | + with: |
| 52 | + distribution: 'temurin' |
| 53 | + java-version: ${{ matrix.java }} |
| 54 | + cache: 'maven' |
| 55 | + - name: Compile Java ${{ matrix.java }} |
| 56 | + run: mvn clean compile -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }} -D maven.test.skip=true -D maven.site.skip=true -D maven.javadoc.skip=true |
| 57 | + - name: Run Tests ${{ matrix.java }} |
| 58 | + run: | |
| 59 | + mvn test -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }} |
| 60 | + - name: Build Test Report ${{ matrix.java }} |
| 61 | + if: ${{ always() }} |
| 62 | + run: | |
| 63 | + mvn surefire-report:report-only -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }} |
| 64 | + mvn site -D generateReports=false -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }} |
| 65 | + - name: Upload Test Results ${{ matrix.java }} |
| 66 | + if: ${{ always() }} |
| 67 | + uses: actions/upload-artifact@v3 |
| 68 | + with: |
| 69 | + name: Test Results ${{ matrix.java }} |
| 70 | + path: target/surefire-reports/ |
| 71 | + - name: Upload Test Report ${{ matrix.java }} |
| 72 | + if: ${{ always() }} |
| 73 | + uses: actions/upload-artifact@v3 |
| 74 | + with: |
| 75 | + name: Test Report ${{ matrix.java }} |
| 76 | + path: target/site/ |
| 77 | + - name: Package Jar ${{ matrix.java }} |
| 78 | + run: mvn clean package -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }} -D maven.test.skip=true -D maven.site.skip=true |
| 79 | + - name: Upload Package Results ${{ matrix.java }} |
| 80 | + if: ${{ always() }} |
| 81 | + uses: actions/upload-artifact@v3 |
| 82 | + with: |
| 83 | + name: Package Jar ${{ matrix.java }} |
| 84 | + path: target/*.jar |
| 85 | + |
38 | 86 | build-11: |
39 | 87 | runs-on: ubuntu-latest |
40 | 88 | strategy: |
@@ -83,15 +131,62 @@ jobs: |
83 | 131 | name: Package Jar ${{ matrix.java }} |
84 | 132 | path: target/*.jar |
85 | 133 |
|
| 134 | + build-17: |
| 135 | + runs-on: ubuntu-latest |
| 136 | + strategy: |
| 137 | + fail-fast: false |
| 138 | + max-parallel: 1 |
| 139 | + matrix: |
| 140 | + # build against supported Java LTS versions: |
| 141 | + java: [ 17 ] |
| 142 | + name: Java ${{ matrix.java }} |
| 143 | + steps: |
| 144 | + - uses: actions/checkout@v3 |
| 145 | + - name: Set up JDK ${{ matrix.java }} |
| 146 | + uses: actions/setup-java@v3 |
| 147 | + with: |
| 148 | + distribution: 'temurin' |
| 149 | + java-version: ${{ matrix.java }} |
| 150 | + cache: 'maven' |
| 151 | + - name: Compile Java ${{ matrix.java }} |
| 152 | + run: mvn clean compile -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }} -D maven.test.skip=true -D maven.site.skip=true -D maven.javadoc.skip=true |
| 153 | + - name: Run Tests ${{ matrix.java }} |
| 154 | + run: | |
| 155 | + mvn test -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }} |
| 156 | + - name: Build Test Report ${{ matrix.java }} |
| 157 | + if: ${{ always() }} |
| 158 | + run: | |
| 159 | + mvn surefire-report:report-only -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }} |
| 160 | + mvn site -D generateReports=false -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }} |
| 161 | + - name: Upload Test Results ${{ matrix.java }} |
| 162 | + if: ${{ always() }} |
| 163 | + uses: actions/upload-artifact@v3 |
| 164 | + with: |
| 165 | + name: Test Results ${{ matrix.java }} |
| 166 | + path: target/surefire-reports/ |
| 167 | + - name: Upload Test Report ${{ matrix.java }} |
| 168 | + if: ${{ always() }} |
| 169 | + uses: actions/upload-artifact@v3 |
| 170 | + with: |
| 171 | + name: Test Report ${{ matrix.java }} |
| 172 | + path: target/site/ |
| 173 | + - name: Package Jar ${{ matrix.java }} |
| 174 | + run: mvn clean package -D maven.compiler.source=${{ matrix.java }} -D maven.compiler.target=${{ matrix.java }} -D maven.test.skip=true -D maven.site.skip=true |
| 175 | + - name: Upload Package Results ${{ matrix.java }} |
| 176 | + if: ${{ always() }} |
| 177 | + uses: actions/upload-artifact@v3 |
| 178 | + with: |
| 179 | + name: Package Jar ${{ matrix.java }} |
| 180 | + path: target/*.jar |
86 | 181 |
|
87 | | - build-matrix: |
| 182 | + build-21: |
88 | 183 | runs-on: ubuntu-latest |
89 | 184 | strategy: |
90 | 185 | fail-fast: false |
91 | | - max-parallel: 2 |
| 186 | + max-parallel: 1 |
92 | 187 | matrix: |
93 | 188 | # build against supported Java LTS versions: |
94 | | - java: [ 8, 17, 21 ] |
| 189 | + java: [ 21 ] |
95 | 190 | name: Java ${{ matrix.java }} |
96 | 191 | steps: |
97 | 192 | - uses: actions/checkout@v3 |
|
0 commit comments