Skip to content

Merge pull request #212 from OpenElements/dependabot/maven/org.jrelea… #621

Merge pull request #212 from OpenElements/dependabot/maven/org.jrelea…

Merge pull request #212 from OpenElements/dependabot/maven/org.jrelea… #621

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Java CI with Maven
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/[email protected]
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Check code formatting with Spotless
run: ./mvnw spotless:check
- name: Prepare Hiero Solo
id: solo
uses: hiero-ledger/hiero-solo-action@fbca3e7a99ce9aa8a250563a81187abe115e0dad # v0.16.0
with:
installMirrorNode: true
hieroVersion: v0.66.0
mirrorNodeVersion: v0.138.0
mirrorNodePortRest: 5551
mirrorNodePortGrpc: 5600
mirrorNodePortWeb3Rest: 8545
soloVersion: 0.46.1
- name: Wait for Mirror Node
run: |
echo "Waiting for Mirror Node REST API to be ready on http://localhost:5551..."
until curl --output /dev/null --silent --head --fail http://localhost:5551/api/v1/network/supply; do
echo "Mirror Node not ready, waiting..."
kubectl get svc -n solo
curl --silent http://localhost:5551/api/v1/network/supply || echo "No response from /api/v1/network/supply"
sleep 5
done
echo "Mirror Node REST API is ready!"
- name: Build with Maven
env:
SPRING_PROFILES_ACTIVE: solo
HEDERA_ACCOUNT_ID: ${{ steps.solo.outputs.accountId }}
HEDERA_PRIVATE_KEY: ${{ steps.solo.outputs.privateKey }}
HEDERA_NETWORK: hiero-solo-action
run: ./mvnw verify