generated from hms-networks/sc-java-maven-starter-project
-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (37 loc) · 983 Bytes
/
junit-test.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
34
35
36
37
38
39
40
41
42
43
# HMS Networks; Americas
# JUnit Test Action for Maven-based Ewon ETK Projects
# Version: 3.0.0
# Date: February 8, 2024
#
# This action is configured to automatically run when a push
# is made to the `main` branch or a pull request for the `main`
# branch.
name: JUnit Test
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
junit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Set Up JDK
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 16
cache: 'maven'
- name: Run JUnit Testing With Maven
run: mvn test -f pom.xml
- name: Upload Test Report(s)
uses: actions/upload-artifact@v3
with:
name: JUNIT-TEST-REPORTING-${{ github.sha }}-${{ github.event.repository.name }}
path: |
target/surefire-reports
target/site