-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (33 loc) · 829 Bytes
/
test.yml
File metadata and controls
39 lines (33 loc) · 829 Bytes
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
---
name: Test
on:
pull_request:
branches: [main]
env:
JAVA_VERSION: '11'
JAVA_DISTRO: 'zulu'
jobs:
build:
name: Unit Test
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'true'
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRO }}
cache: maven
- name: Build
run: ./mvnw -ntp -B --file pom.xml verify
- name: Generate Surefire test reports
run: ./mvnw surefire-report:report
- name: Access Surefire test report
uses: actions/upload-artifact@v4
with:
name: surefire-reports
path: ./sdk/target/site/