|
| 1 | +name: Run Spring Boot REST TCK |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + paths-ignore: |
| 8 | + - '**/docs/**' |
| 9 | + pull_request: |
| 10 | + branches: |
| 11 | + - main |
| 12 | + paths-ignore: |
| 13 | + - '**/docs/**' |
| 14 | + workflow_dispatch: |
| 15 | + |
| 16 | +env: |
| 17 | + # Tag/branch of the TCK |
| 18 | + TCK_VERSION: 1.0.0.alpha2 |
| 19 | + # Tells uv to not need a venv, and instead use system |
| 20 | + UV_SYSTEM_PYTHON: 1 |
| 21 | + SUT_URL: http://localhost:9999 |
| 22 | + |
| 23 | +# Only run the latest job |
| 24 | +concurrency: |
| 25 | + group: '${{ github.workflow }} @ ${{ github.head_ref || github.ref }}' |
| 26 | + cancel-in-progress: true |
| 27 | + |
| 28 | +jobs: |
| 29 | + spring-boot-rest-tck: |
| 30 | + runs-on: ubuntu-latest |
| 31 | + timeout-minutes: 30 |
| 32 | + steps: |
| 33 | + - name: Checkout a2a-java |
| 34 | + uses: actions/checkout@v6 |
| 35 | + |
| 36 | + - name: Set up JDK 17 |
| 37 | + uses: actions/setup-java@v5 |
| 38 | + with: |
| 39 | + java-version: '17' |
| 40 | + distribution: 'temurin' |
| 41 | + cache: maven |
| 42 | + |
| 43 | + - name: Build Spring Boot server modules |
| 44 | + run: mvn -B -pl integrations/spring-boot/server -am test |
| 45 | + |
| 46 | + - name: Checkout a2a-tck |
| 47 | + uses: actions/checkout@v6 |
| 48 | + with: |
| 49 | + repository: a2aproject/a2a-tck |
| 50 | + path: a2a-tck |
| 51 | + ref: ${{ env.TCK_VERSION }} |
| 52 | + |
| 53 | + - name: Set up Python |
| 54 | + uses: actions/setup-python@v6 |
| 55 | + with: |
| 56 | + python-version-file: 'a2a-tck/pyproject.toml' |
| 57 | + |
| 58 | + - name: Install uv and Python dependencies |
| 59 | + run: | |
| 60 | + pip install uv |
| 61 | + uv pip install -e . |
| 62 | + working-directory: a2a-tck |
| 63 | + |
| 64 | + - name: Run Spring Boot REST TCK |
| 65 | + id: run-tck |
| 66 | + run: bash ./scripts/run-spring-boot-rest-tck.sh |
| 67 | + env: |
| 68 | + TCK_DIR: a2a-tck |
| 69 | + SUT_URL: ${{ env.SUT_URL }} |
| 70 | + |
| 71 | + - name: TCK Summary |
| 72 | + if: always() |
| 73 | + run: | |
| 74 | + echo '### Spring Boot REST TCK Results' >> "$GITHUB_STEP_SUMMARY" |
| 75 | + echo '```' >> "$GITHUB_STEP_SUMMARY" |
| 76 | + if [ -f tck-output.log ]; then |
| 77 | + tail -n 120 tck-output.log >> "$GITHUB_STEP_SUMMARY" |
| 78 | + else |
| 79 | + echo 'TCK log was not generated.' >> "$GITHUB_STEP_SUMMARY" |
| 80 | + fi |
| 81 | + echo '```' >> "$GITHUB_STEP_SUMMARY" |
| 82 | +
|
| 83 | + - name: Upload TCK Reports |
| 84 | + if: always() |
| 85 | + uses: actions/upload-artifact@v7 |
| 86 | + with: |
| 87 | + name: spring-boot-rest-tck-reports |
| 88 | + path: | |
| 89 | + a2a-tck/reports/ |
| 90 | + spring-boot-rest-sut.log |
| 91 | + spring-boot-rest-sut.pid |
| 92 | + tck-output.log |
| 93 | + retention-days: 14 |
| 94 | + if-no-files-found: warn |
0 commit comments