RESTEasy Netty Integration Tests #224
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: RESTEasy Netty Integration Tests | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| paths: | |
| - '.github/workflows/resteasy-build.yml' | |
| - '**/pom.xml' | |
| - 'embedded-server/**' | |
| - 'embedded-server-cdi/**' | |
| - 'embedded-server-reactor/**' | |
| - 'reactor-netty-client/**' | |
| pull_request: | |
| branches: | |
| - '**' | |
| paths: | |
| - '.github/workflows/resteasy-build.yml' | |
| schedule: | |
| - cron: '0 0 * * *' # Every day at 00:00 UTC | |
| # Only run the latest job and cancel previous ones | |
| concurrency: | |
| group: 'resteasy-${{ github.ref || github.run_id }}' | |
| cancel-in-progress: true | |
| jobs: | |
| resteasy-build: | |
| uses: resteasy/resteasy/.github/workflows/shared-resteasy-build.yml@6.2 | |
| with: | |
| resteasy-branch: "6.2" | |
| resteasy-repo: "resteasy/resteasy" | |
| resteasy-netty-build: | |
| runs-on: ${{ matrix.os }} | |
| needs: resteasy-build | |
| timeout-minutes: 60 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| java: ['17', '21', '25'] | |
| steps: | |
| - name: Checkout RESTEasy Netty | |
| uses: actions/checkout@v6 | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| name: resteasy-maven-repository | |
| path: . | |
| - name: Extract Maven Repo | |
| shell: bash | |
| run: tar -xzf resteasy-maven-repository.tar.gz -C ~ | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 11 | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Set up JDK ${{ matrix.java }} | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Build and Test RESTEasy Netty Java ${{ matrix.java }} - ${{ matrix.os }} | |
| run: | | |
| mvn clean install -B '-Dversion.org.jboss.resteasy=${{ needs.resteasy-build.outputs.resteasy-version }}' '-Djava11.home=${{env.JAVA_HOME_11_X64}}' | |
| - uses: actions/upload-artifact@v7 | |
| if: failure() | |
| with: | |
| name: surefire-reports-${{ matrix.os }}-${{ matrix.java }} | |
| path: | | |
| '**/surefire-reports/' | |
| - uses: actions/upload-artifact@v7 | |
| if: failure() | |
| with: | |
| name: failsafe-reports-${{ matrix.os }}-${{ matrix.java }} | |
| path: | | |
| '**/failsafe-reports/' | |
| - name: Upload server logs | |
| uses: actions/upload-artifact@v7 | |
| if: failure() | |
| with: | |
| name: server-logs-${{ matrix.os }}-${{ matrix.java }} | |
| path: | | |
| '**/*.log' | |