Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolay Nikolov <[email protected]>
  • Loading branch information
nickeynikolovv committed Nov 15, 2024
1 parent 1df4608 commit 88ac26e
Showing 1 changed file with 82 additions and 82 deletions.
164 changes: 82 additions & 82 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,88 +24,88 @@ env:
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@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
# with:
# egress-policy: audit
#
# - name: Checkout Code
# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
#
# - name: Setup Node
# uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
# with:
# node-version: 18
#
# - name: Install JDK
# uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
# with:
# distribution: temurin
# java-version: 21
#
# - name: Setup Gradle
# uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # 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: TEST Execute with flag
# if: ${{ matrix.project == 'web3' }}
# env:
# MIRROR_NODE_SCHEMA: ${{ matrix.project == 'web3'}}
# SPRING_PROFILES_ACTIVE: ${{ matrix.schema}}
# run: ./gradlew :web3:test -DtestFlag=true --scan
#
# - name: Upload coverage report
# uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# if: ${{ matrix.schema == 'v1' && matrix.project != 'rest:monitoring' && matrix.project != 'test' && always() }}
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@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit

- name: Checkout Code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Setup Node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: 18

- name: Install JDK
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
distribution: temurin
java-version: 21

- name: Setup Gradle
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # 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: TEST Execute with flag
if: ${{ matrix.project == 'web3' }}
env:
MIRROR_NODE_SCHEMA: ${{ matrix.project == 'web3'}}
SPRING_PROFILES_ACTIVE: ${{ matrix.schema}}
run: ./gradlew :web3:test -DtestFlag=true --scan

- name: Upload coverage report
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
if: ${{ matrix.schema == 'v1' && matrix.project != 'rest:monitoring' && matrix.project != 'test' && always() }}

testReusable:
name: Reusable services test with flag
Expand Down

0 comments on commit 88ac26e

Please sign in to comment.