-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Maven unit test / build test CI for JVM frontends
Signed-off-by: Arthur Chan <[email protected]>
- Loading branch information
Arthur Chan
committed
Nov 29, 2022
1 parent
06a8528
commit d7d3911
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: JVM-Frontends-Unit-Test | ||
|
||
on: pull_request | ||
permissions: read-all | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: JVM-Frontends-Unit-Test | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 | ||
- name: Set up OpenJDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '11' | ||
- name: Goto frontends java directory | ||
run: cd frontends/java | ||
- name: Test Maven Build | ||
run: mvn --batch-mode -DskipTests clean package | ||
- name: Unit Test (defer fail report) | ||
run: mvn --batch-mode -Dmaven.test.failure.ignore=true test | ||
- name: Report unit test result | ||
uses: dorny/test-reporter@v1 | ||
if: always() | ||
with: | ||
name: Maven Build / Unit Test | ||
path: target/surefire-reports/*.xml | ||
reporter: java-junit | ||
fail-on-error: true |