-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 1004 Bytes
/
Copy pathunit-test.yml
File metadata and controls
38 lines (31 loc) · 1004 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
name: Unit tests
on:
push:
branches: ["**"]
concurrency:
group: unit-test-${{ github.ref }}
cancel-in-progress: true
jobs:
unit-test:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout Split Tests Java
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Set up JDK 21
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5
with:
distribution: temurin
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6
- name: Gradle check
run: ./gradlew check
- name: Publish test report
uses: mikepenz/action-junit-report@d9f48fc87bc235f7e214acf696ca5abc0a986f16 # v6
if: always()
with:
annotate_only: true
detailed_summary: true
job_name: unit-test-report
report_paths: '**/build/test-results/test/TEST-*.xml'