feat: Upgrade to a2a-java 1.0.0.Alpha3 #2
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 Java Agent Samples | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'samples/java/agents/**' | |
| pull_request: | |
| paths: | |
| - 'samples/java/agents/**' | |
| jobs: | |
| build-and-test: | |
| name: Build and Test Java Agents | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Set up Java 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| cache: 'maven' | |
| - name: Set up JBang | |
| uses: jbangdev/setup-jbang@main | |
| - name: Build and test Java agent samples | |
| working-directory: samples/java/agents | |
| run: mvn clean install | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results | |
| path: samples/java/agents/**/target/surefire-reports/ | |
| retention-days: 7 |