RESTEasy Jetty Integration Tests #209
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 Jetty Integration Tests | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| paths: | |
| - '.github/workflows/resteasy-build.yml' | |
| - '**/pom.xml' | |
| - '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-jetty-${{ 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-jetty-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 Jetty | |
| uses: actions/checkout@v6 | |
| - uses: actions/download-artifact@v7 | |
| 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 ${{ matrix.java }} | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Build and Test RESTEasy Jety Java ${{ matrix.java }} - ${{ matrix.os }} | |
| run: | | |
| mvn clean install -B '-Dversion.org.jboss.resteasy=${{ needs.resteasy-build.outputs.resteasy-version }}' | |
| - uses: actions/upload-artifact@v6 | |
| if: failure() | |
| with: | |
| name: surefire-reports-${{ matrix.os }}-${{ matrix.java }} | |
| path: | | |
| '**/surefire-reports/' | |
| - uses: actions/upload-artifact@v6 | |
| if: failure() | |
| with: | |
| name: failsafe-reports-${{ matrix.os }}-${{ matrix.java }} | |
| path: | | |
| '**/failsafe-reports/' | |
| - name: Upload server logs | |
| uses: actions/upload-artifact@v6 | |
| if: failure() | |
| with: | |
| name: server-logs-${{ matrix.os }}-${{ matrix.java }} | |
| path: | | |
| '**/*.log' | |