-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 752 Bytes
/
Copy pathtest.yml
File metadata and controls
36 lines (29 loc) · 752 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
name: Java Test
on: push
jobs:
build:
name: Build Java project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: current
- name: Test
run: gradle test
- name: Get path to output
id: path_output
run: echo "outputPath=$(find . -name "")" >> "$GITHUB_OUTPUT"
- name: Publish test report
uses: dorny/test-reporter@v1
with:
name: JUnit-report
path: "build/**/TEST-*.xml"
fail-on-error: true
reporter: java-junit