forked from hyperledger/besu
-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (39 loc) · 1.16 KB
/
unit-tests.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
name: unit-tests
on:
push:
env:
GRADLE_OPTS: "-Xmx6g -Dorg.gradle.daemon=false"
total-runners: 6
jobs:
unitTests:
runs-on:
group: "Besu Large Runners"
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 17
cache: gradle
- name: Build
uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
cache-read-only: false
arguments: build -Dorg.gradle.parallel=true
- name: Upload Unit Test Report
uses: actions/upload-artifact@v3
if: always() # always run even if the build tests fail
with:
name: junit-unit-test-results
path: '**/test-results/build/TEST-*.xml'
retention-days: 10
- name: Unit Test Report html
uses: actions/upload-artifact@v3
if: always() # always run even if the previous step fails
with:
name: html-unit-${{ matrix.runner-index }}-test-results
path: '**/build/reports/tests/build/**'
retention-days: 10