[maven-release-plugin] prepare for next development iteration #789
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow will build a Java project with Maven | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
| name: WildFly Plugin Tools WildFly Integration - CI | |
| on: | |
| push: | |
| branches-ignore: | |
| - 'dependabot/**' | |
| pull_request: | |
| branches: | |
| - '**' | |
| paths: | |
| - '.github/workflows/wildfly-ci.yml' | |
| schedule: | |
| - cron: '0 0 * * *' # Every day at 00:00 UTC | |
| # Only run the latest job | |
| concurrency: | |
| group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
| cancel-in-progress: true | |
| env: | |
| MVN_CMD: './mvnw -V -B' | |
| jobs: | |
| wildfly-test-and-build: | |
| name: '${{ matrix.os }}' | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ 'ubuntu-latest' , 'windows-latest' ] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: wildfly-extras/wildfly-nightly-download@v1 | |
| id: wildfly-nightly | |
| - name: Set up JDKs | |
| uses: actions/setup-java@v5 | |
| with: | |
| cache: 'maven' | |
| distribution: 'temurin' | |
| # Please note the order here of having 25 last as that is the version we want to compile with | |
| java-version: | | |
| 17 | |
| 21 | |
| 26 | |
| 25 | |
| - name: Build and Test on ${{ matrix.os }} Java 25 with WildFly ${{steps.wildfly-nightly.outputs.wildfly-version}} | |
| run: ${{ env.MVN_CMD }} clean verify '-Dorg.jboss.logmanager.nocolor=true' '-Dversion.org.wildfly=${{steps.wildfly-nightly.outputs.wildfly-version}}' | |
| - name: Build and Test on ${{ matrix.os }} Java 26 with WildFly ${{steps.wildfly-nightly.outputs.wildfly-version}} | |
| run: ${{ env.MVN_CMD }} verify '-Dorg.jboss.logmanager.nocolor=true' '-Dversion.org.wildfly=${{steps.wildfly-nightly.outputs.wildfly-version}}' '-Dtest.java.home=${{env.JAVA_HOME_26_X64}}${{env.JAVA_HOME_26_ARM64}}' '-Dtest.report.dir=java26' | |
| - name: Build and Test on ${{ matrix.os }} Java 21 with WildFly ${{steps.wildfly-nightly.outputs.wildfly-version}} | |
| run: ${{ env.MVN_CMD }} verify '-Dorg.jboss.logmanager.nocolor=true' '-Dversion.org.wildfly=${{steps.wildfly-nightly.outputs.wildfly-version}}' '-Dtest.java.home=${{env.JAVA_HOME_21_X64}}${{env.JAVA_HOME_21_ARM64}}' '-Dtest.report.dir=java21' | |
| - name: Build and Test on ${{ matrix.os }} Java 17 with WildFly ${{steps.wildfly-nightly.outputs.wildfly-version}} | |
| run: ${{ env.MVN_CMD }} verify '-Dorg.jboss.logmanager.nocolor=true' '-Dversion.org.wildfly=${{steps.wildfly-nightly.outputs.wildfly-version}}' '-Dtest.java.home=${{env.JAVA_HOME_17_X64}}${{env.JAVA_HOME_17_ARM64}}' '-Dtest.report.dir=java17' | |
| - name: Upload test logs for failed run | |
| uses: actions/upload-artifact@v7 | |
| if: failure() | |
| with: | |
| name: wildfly-build-test-reports-${{ matrix.os }} | |
| path: | | |
| **/logs/ | |
| **/*.log | |
| **/failsafe-reports/ | |
| **/surefire-reports/ | |
| legacy-test-and-build: | |
| name: 'legacy-${{ matrix.os }}' | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ 'ubuntu-latest' , 'windows-latest' ] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 21 | |
| cache: 'maven' | |
| distribution: 'temurin' | |
| - name: Build and Test on ${{ matrix.os }} - Java 21 with WildFly 32.0.0.Final | |
| # 32.0.0.Final was the first version which deployed channels | |
| run: ${{ env.MVN_CMD }} clean verify '-Dorg.jboss.logmanager.nocolor=true' '-Dversion.org.wildfly=32.0.0.Final' | |
| - name: Upload test logs for failed run | |
| uses: actions/upload-artifact@v7 | |
| if: failure() | |
| with: | |
| name: wildfly-legacy-build-test-reports-${{ matrix.os }} | |
| path: | | |
| **/logs/ | |
| **/*.log | |
| **/failsafe-reports/ | |
| **/surefire-reports/ |