|
7 | 7 | strategy: |
8 | 8 | matrix: |
9 | 9 | # test against latest 8, 11, 17, 21 of zulu and temurin java |
10 | | - java-version: [8, 11, 17, 21] |
11 | | - java-vendor: ['zulu', 'temurin', 'corretto'] |
| 10 | + java-version: [8, 11, 17, 21, 25] |
| 11 | + java-vendor: ['temurin', 'corretto'] |
12 | 12 | steps: |
13 | | - - uses: actions/checkout@v4 |
| 13 | + - uses: actions/checkout@v6 |
| 14 | + - name: Build with ${{ matrix.java-vendor }} 17 and run tests with ${{ matrix.java-vendor }} 8 |
| 15 | + if: ${{ matrix.java-version == 8 }} |
| 16 | + uses: Unidata/thredds-test-action@v4 |
| 17 | + with: |
| 18 | + java-vendor: ${{ matrix.java-vendor }} |
| 19 | + java-version: 17 |
| 20 | + build-tool: 'gradlew' |
| 21 | + test-command: '-Dorg.gradle.java.installations.fromEnv=TEST_JDK --info --stacktrace test' |
| 22 | + env: |
| 23 | + TEST_JDK: /usr/thredds-test-environment/${{ matrix.java-vendor }}8 |
14 | 24 | - name: Build with ${{ matrix.java-vendor }} 17 and run tests with ${{ matrix.java-vendor }} ${{ matrix.java-version }} |
15 | | - uses: Unidata/thredds-test-action@v3 |
| 25 | + if: ${{ matrix.java-version != 8 }} |
| 26 | + uses: Unidata/thredds-test-action@v4 |
16 | 27 | with: |
17 | 28 | java-vendor: ${{ matrix.java-vendor }} |
18 | 29 | java-version: 17 |
19 | 30 | build-tool: 'gradlew' |
20 | | - test-command: '-Dorg.gradle.java.installations.fromEnv=JDK8 --info --stacktrace test' |
| 31 | + test-command: '-Dorg.gradle.java.installations.fromEnv=TEST_JDK --info --stacktrace testWithJdk${{ matrix.java-version }}' |
21 | 32 | env: |
22 | | - JDK8: /usr/thredds-test-environment/${{ matrix.java-vendor }}8 |
23 | | - - name: Prep for artifact upload |
| 33 | + TEST_JDK: /usr/thredds-test-environment/${{ matrix.java-vendor }}${{ matrix.java-version }} |
| 34 | + - name: Cleanup build-logic-ncj build directory |
24 | 35 | if: failure() |
25 | | - run: rm -rf build-logic-ncj/build/tmp |
26 | | - - uses: actions/upload-artifact@v4 |
| 36 | + run: sudo rm -rf build-logic-ncj/build/ |
| 37 | + - uses: actions/upload-artifact@v6 |
27 | 38 | if: failure() |
28 | 39 | with: |
29 | 40 | name: netCDF-Java_JUnit_Results_${{ github.sha }}_${{ matrix.java-vendor }}-${{ matrix.java-version }} |
30 | | - path: | |
31 | | - ${{ github.workspace }}/**/build/reports/tests/**/* |
| 41 | + path: ${{ github.workspace }}/**/build/reports/* |
0 commit comments