Skip to content
Merged
1 change: 1 addition & 0 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
images:
runs-on: hiero-mirror-node-linux-medium
strategy:
fail-fast: false
matrix:
module:
[
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
name: Build
runs-on: hiero-mirror-node-linux-large
strategy:
fail-fast: false
matrix:
project:
- common
Expand Down Expand Up @@ -88,7 +89,7 @@ jobs:
if: ${{ matrix.schema == 'v1' && matrix.project != 'test' && always() && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) }}
run: ./gradlew :${{ matrix.project }}:uploadCoverage

- name: Execute Gradle using transaction executor
- name: Build and test web3 with modularized code
env:
HIERO_MIRROR_WEB3_EVM_MODULARIZEDSERVICES: "true"
HIERO_MIRROR_WEB3_EVM_MODULARIZEDTRAFFICPERCENT: "1.0"
Expand Down
92 changes: 92 additions & 0 deletions .github/workflows/nzr-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# SPDX-License-Identifier: Apache-2.0

name: "Test non-zero shard and realm network"
on:
schedule:
- cron: "0 0 * * *" # Daily at midnight
workflow_dispatch:
inputs:
branch:
description: "Branch"
required: true
type: string

defaults:
run:
shell: bash

permissions:
contents: read

env:
LC_ALL: C.UTF-8
CGO_ENABLED: 1

jobs:
build:
name: Build
env:
HIERO_MIRROR_COMMON_REALM: 1
HIERO_MIRROR_COMMON_SHARD: 1
runs-on: hiero-mirror-node-linux-large
strategy:
fail-fast: false
matrix:
project:
- common
- graphql
- grpc
- importer
- monitor
- rest
- rest-java
- rosetta
- web3
schema:
- v1
- v2
exclude:
- project: common
schema: v2
- project: monitor
schema: v2
- project: rosetta
schema: v2
timeout-minutes: 40 # increase it from 20 minutes since some jobs often run longer on self-hosted runners
steps:
- name: Harden Runner
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
with:
egress-policy: audit

- name: Checkout Code
if: ${{ github.event_name != 'workflow_dispatch' }}
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Checkout Code from Branch
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ github.event.inputs.branch }}

- name: Install JDK
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
with:
distribution: temurin
java-version: 21

- name: Setup Gradle
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4

- name: Execute Gradle
env:
MIRROR_NODE_SCHEMA: ${{ matrix.schema}}
SPRING_PROFILES_ACTIVE: ${{ matrix.schema}}
run: ./gradlew :${{matrix.project}}:build --scan ${{ secrets.GRADLE_ARGS }}

- name: Build and test web3 with modularized code
env:
HIERO_MIRROR_WEB3_EVM_MODULARIZEDSERVICES: "true"
HIERO_MIRROR_WEB3_EVM_MODULARIZEDTRAFFICPERCENT: "1.0"
if: ${{ matrix.project == 'web3' && matrix.schema == 'v1'}}
run: ./gradlew :${{ matrix.project }}:build
1 change: 1 addition & 0 deletions .github/workflows/release-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ env:
jobs:
publish:
strategy:
fail-fast: false
matrix:
project:
- graphql
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ env:
jobs:
image:
strategy:
fail-fast: false
matrix:
project:
- graphql
Expand Down
Loading