Skip to content

Commit

Permalink
Merge pull request #117 from dmlloyd/test
Browse files Browse the repository at this point in the history
Fix workflow to build on 17 and test on 11 and 17
  • Loading branch information
dmlloyd authored Sep 19, 2023
2 parents 188f708 + 068f6c1 commit 9b9f6e6
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 11 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ on:

jobs:
build-test-matrix:
name: ${{ matrix.jdk-distribution }}-${{ matrix.jdk-version }}-${{ matrix.os }}
name: ${{ matrix.jdk-distribution }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
jdk-distribution: [temurin, adopt-openj9]
jdk-version: [11, 17]
steps:
- name: Configure runner - Linux
if: contains(matrix.os, 'ubuntu')
Expand All @@ -31,15 +30,17 @@ jobs:
echo '::1 localhost localhost.localdomain localhost6 localhost6.localdomain6' >> %SystemRoot%\System32\drivers\etc\hosts
shell: cmd
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.jdk-distribution }} ${{ matrix.jdk-version }}
- name: Set up JDK ${{ matrix.jdk-distribution }} 17
uses: actions/setup-java@v3
with:
distribution: ${{ matrix.jdk-distribution }}
java-version: ${{ matrix.jdk-version }}
java-version: |
11
17
- name: Run Tests
run: mvn -ntp -U -B -fae clean install
run: mvn "-Djava11.home=${{env.JAVA_HOME_11_X64}}" -ntp -U -B -fae clean install
- uses: actions/upload-artifact@v3
if: failure()
with:
name: surefire-${{ matrix.jdk-distribution }}-${{ matrix.jdk-version }}-${{ matrix.os }}
name: surefire-${{ matrix.jdk-distribution }}-${{ matrix.os }}
path: '**/surefire-reports/*.txt'
Empty file added api/build-test-java11
Empty file.
Empty file added api/build-test-java17
Empty file.
5 changes: 4 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<parent>
<groupId>org.jboss</groupId>
<artifactId>jboss-parent</artifactId>
<version>34</version>
<version>39</version>
</parent>

<licenses>
Expand Down Expand Up @@ -62,6 +62,9 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0-jboss-1</version>
<configuration>
<release>11</release>
</configuration>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
Expand Down
Empty file added river/build-test-java11
Empty file.
Empty file added river/build-test-java17
Empty file.
Empty file added serial/build-test-java11
Empty file.
Empty file added serial/build-test-java17
Empty file.
Empty file added tests/build-test-java17
Empty file.
6 changes: 2 additions & 4 deletions tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0-jboss-1</version>
<configuration>
<testSource>11</testSource>
<testTarget>11</testTarget>
<testRelease>11</testRelease>
</configuration>
<executions>
<execution>
Expand All @@ -78,8 +77,7 @@
<goal>testCompile</goal>
</goals>
<configuration>
<testSource>16</testSource>
<testTarget>16</testTarget>
<testRelease>16</testRelease>
<testIncludes>
<include>**/org/jboss/test/marshalling/RecordTests.java</include>
<include>**/org/jboss/test/marshalling/RecordTestFactory.java</include>
Expand Down

0 comments on commit 9b9f6e6

Please sign in to comment.