From d7d3911192f9faf7fe9e029595315738bafa407f Mon Sep 17 00:00:00 2001 From: Arthur Chan Date: Tue, 29 Nov 2022 14:11:38 +0000 Subject: [PATCH] Add Maven unit test / build test CI for JVM frontends Signed-off-by: Arthur Chan --- .github/workflows/jvm-unit-test.yml | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/jvm-unit-test.yml diff --git a/.github/workflows/jvm-unit-test.yml b/.github/workflows/jvm-unit-test.yml new file mode 100644 index 000000000..3296b86bb --- /dev/null +++ b/.github/workflows/jvm-unit-test.yml @@ -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