-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1012 Bytes
/
tests.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
name: Tests
on: ["push", "pull_request"]
jobs:
test:
name: 'JDK ${{ matrix.java }} on ${{ matrix.os }}'
strategy:
fail-fast: false
matrix:
java: ['11', '17', '21']
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
runs-on: '${{ matrix.os }}'
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1
- uses: actions/setup-java@v3
with:
distribution: zulu
java-version: |
${{ matrix.java }}
21
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Run tests
run: ./gradlew check
env:
TESTING_AGAINST_JDK: ${{ matrix.java }}
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure()
with:
annotate_only: true
detailed_summary: true
include_passed: true
report_paths: '**/build/test-results/test/TEST-*.xml'