-
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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- name: Set up JDK 21
uses: actions/setup-java@ad2b38190b15e4d6bdf0c97fb4fca8412226d287 # v5
with:
distribution: temurin
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # 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'