-
Notifications
You must be signed in to change notification settings - Fork 112
59 lines (52 loc) · 1.64 KB
/
gradle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: "Gradle"
on:
pull_request:
branches: [ main, release/** ]
push:
branches: [ main, release/** ]
tags: [ v* ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
project: [ graphql, grpc, importer, monitor, rest, 'rest:check-state-proof', 'rest:monitoring', rosetta, web3 ]
schema: [ v1, v2 ]
exclude:
- project: monitor
schema: v2
- project: rest:check-state-proof
schema: v2
- project: rest:monitoring
schema: v2
- project: rosetta
schema: v2
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Execute Gradle
uses: gradle/gradle-build-action@v2
env:
MIRROR_NODE_SCHEMA: ${{ matrix.schema}}
SPRING_PROFILES_ACTIVE: ${{ matrix.schema}}
with:
arguments: :${{matrix.project}}:build --scan ${{ secrets.GRADLE_ARGS }}
- name: Upload coverage report
uses: codecov/codecov-action@v3
if: always() && matrix.schema == 'v1'
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: "**/build/test-results/test/TEST-*.xml"
require_tests: "false"
- name: Upload artifact
if: startsWith(github.ref, 'refs/tags/v') && matrix.schema == 'v1'
uses: actions/upload-artifact@v3
with:
name: hedera-mirror-${{matrix.project}}
path: hedera-mirror-${{matrix.project}}/build/**/*.tgz