feat: Add agent-to-agent communication testing (#625) #1555
Workflow file for this run
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
| name: Build and Test | |
| on: | |
| # Handle all branches for now | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| # Only run the latest job | |
| concurrency: | |
| group: '${{ github.workflow }} @ ${{ github.head_ref || github.ref }}' | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| java-version: ['17', '21', '25'] | |
| steps: | |
| # 'ubuntu-latest' should set up Docker, but apparently it isn't guaranteed | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK ${{ matrix.java-version }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: ${{ matrix.java-version }} | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Build with Maven and run tests | |
| run: mvn -B package --file pom.xml -fae | |
| - name: Upload Test Reports | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: surefire-reports-java-${{ matrix.java-version }} | |
| path: | | |
| **/target/surefire-reports/ | |
| **/target/failsafe-reports/ | |
| retention-days: 7 | |
| if-no-files-found: warn | |
| - name: Upload Build Logs | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-logs-java-${{ matrix.java-version }} | |
| path: | | |
| **/target/*.log | |
| **/target/quarkus.log | |
| retention-days: 3 | |
| if-no-files-found: ignore |