Bump the npm_and_yarn group in /rest with 1 update #15420
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
# SPDX-License-Identifier: Apache-2.0 | |
name: "Gradle" | |
on: | |
pull_request: | |
branches: | |
- "main" | |
- "release/**" | |
push: | |
branches: | |
- "main" | |
- "release/**" | |
tags: | |
- "v*" | |
defaults: | |
run: | |
shell: bash | |
permissions: | |
contents: read | |
env: | |
LC_ALL: C.UTF-8 | |
CGO_ENABLED: 1 | |
jobs: | |
build: | |
name: Build | |
runs-on: hiero-mirror-node-linux-large | |
strategy: | |
matrix: | |
project: | |
- common | |
- graphql | |
- grpc | |
- importer | |
- monitor | |
- rest | |
- rest-java | |
- "rest:check-state-proof" | |
- "rest:monitoring" | |
- rosetta | |
- test | |
- web3 | |
schema: | |
- v1 | |
- v2 | |
exclude: | |
- project: common | |
schema: v2 | |
- project: monitor | |
schema: v2 | |
- project: rest:check-state-proof | |
schema: v2 | |
- project: rest:monitoring | |
schema: v2 | |
- project: rosetta | |
schema: v2 | |
- project: test | |
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@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
with: | |
egress-policy: audit | |
- name: Checkout Code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- 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@8379f6a1328ee0e06e2bb424dadb7b159856a326 # 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: Upload coverage report | |
continue-on-error: true | |
env: | |
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
if: ${{ matrix.schema == 'v1' && matrix.project != 'rest:monitoring' && 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 | |
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 | |
coverage: | |
if: github.event_name == 'push' || (github.event.pull_request.head.repo.full_name == github.repository) | |
name: Upload coverage | |
needs: build | |
runs-on: hiero-mirror-node-linux-large | |
steps: | |
- name: Finalize coverage report | |
continue-on-error: true | |
env: | |
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) final |