Add outstanding token airdrops to REST API #10881
Workflow file for this run
This file contains 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: "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: 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@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1 | |
with: | |
egress-policy: audit | |
- name: Checkout Code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Setup Node | |
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | |
with: | |
node-version: 18 | |
- name: Install JDK | |
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2 | |
with: | |
distribution: temurin | |
java-version: 21 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@16bf8bc8fe830fa669c3c9f914d3eb147c629707 # v4 | |
- name: Setup GCC Compiler | |
if: ${{ matrix.project == 'rosetta' }} | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y --no-install-recommends gcc libc-dev libc6-dev | |
- 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 | |
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
if: ${{ matrix.schema == 'v1' && matrix.project != 'rest:monitoring' && matrix.project != 'test' && always() }} |