getting tired of adding comments, lets run units on push for now #3
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: 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 |