Skip to content

Commit

Permalink
Add Maven unit test / build test CI for JVM frontends
Browse files Browse the repository at this point in the history
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.
30 changes: 30 additions & 0 deletions .github/workflows/jvm-unit-test.yml
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

0 comments on commit d7d3911

Please sign in to comment.