-
Notifications
You must be signed in to change notification settings - Fork 32
33 lines (29 loc) · 1.04 KB
/
ut.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/target/surefire-reports/TEST-*.xml'