Fix integration test payload format; add debug RPC logging #11
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test: | |
| name: Unit tests (Java ${{ matrix.java }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| java: ['11', '17', '21'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: 'temurin' | |
| cache: gradle | |
| - run: ./gradlew test | |
| integration-test: | |
| name: Integration tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| java-version: '11' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Resolve Tempo image digest | |
| id: digest | |
| run: | | |
| DIGEST=$(docker buildx imagetools inspect ghcr.io/tempoxyz/tempo:latest \ | |
| --format '{{.Manifest.Digest}}' 2>/dev/null || echo "unknown") | |
| echo "digest=$DIGEST" >> $GITHUB_OUTPUT | |
| - name: Cache Tempo Docker image | |
| id: cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: /tmp/tempo-image.tar | |
| key: tempo-image-${{ steps.digest.outputs.digest }} | |
| - name: Pull Tempo image | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| run: | | |
| docker pull ghcr.io/tempoxyz/tempo:latest | |
| docker save ghcr.io/tempoxyz/tempo:latest -o /tmp/tempo-image.tar | |
| - name: Load Tempo image | |
| if: steps.cache.outputs.cache-hit == 'true' | |
| run: docker load -i /tmp/tempo-image.tar | |
| - name: Start Tempo node | |
| run: docker compose up -d --wait | |
| - name: Run integration tests | |
| run: ./gradlew integrationTest | |
| env: | |
| TEMPO_RPC_URL: http://localhost:8545 | |
| - name: Stop Tempo node | |
| if: always() | |
| run: docker compose down |