-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (40 loc) · 995 Bytes
/
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
###
### Author: ngoanh2n
### https://docs.github.com/en/actions
### https://github.com/marketplace?type=actions
###
name: Test
on:
push:
branches: [ release ]
workflow_dispatch:
jobs:
test:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
os: [ ubuntu, macos, windows ]
jdk: [ 17 ]
env:
JUNIT_REPORT_NAME: report_${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.jdk }}
- name: Execute the test
run: ./gradlew clean test
- name: Summarize JUnit report
if: success() || failure()
uses: mikepenz/action-junit-report@v4
with:
check_name: ${{ env.JUNIT_REPORT_NAME }}
report_paths: build/reports/test/TEST-*.xml