test: ut for prepare service #244
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
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
name: Test | |
on: [ pull_request, workflow_dispatch ] | |
permissions: | |
checks: write | |
jobs: | |
Unit-Test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java-version: [ 8, 11 ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Test for JDK ${{ matrix.java-version }}" | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: 'temurin' | |
cache: maven | |
- name: Build with Maven | |
run: mvn clean test | |
- name: Codecov | |
uses: codecov/[email protected] | |
- name: Test Report | |
uses: phoenix-actions/test-reporting@v8 | |
if: success() || failure() # run this step even if previous step failed | |
with: | |
name: Junit Tests # Name of the check run which will be created | |
path: '**/target/surefire-reports/TEST-*.xml' | |
reporter: java-junit | |
output-to: 'step-summary' |